福音:Golang的BDD风格测试库

时间:2021-03-01 23:36:38
【文件属性】:
文件名称:福音:Golang的BDD风格测试库
文件大小:6KB
文件格式:ZIP
更新时间:2021-03-01 23:36:38
Go 福音 BDD风格的Golang测试库。 安装 go get github.com/r7kamura/gospel 用法 package main import ( . "github.com/r7kamura/gospel" "testing" ) func TestDescribe ( t * testing. T ) { Describe ( t , "Expectation#To" , func () { Context ( "with Equal" , func () { It ( "evaluates actual == expected" , func () { Expect ( 1 ). To ( Equal , 1 ) }) }) Context ( "with NotEqual" , func () { Before ( fun
【文件预览】:
gospel-master
----dsl.go(1KB)
----expectation.go(2KB)
----formatter.go(3KB)
----LICENSE.txt(1KB)
----example_group.go(2KB)
----example.go(1KB)
----README.md(1KB)
----dsl_test.go(2KB)

网友评论