福音:Golang的BDD风格测试库 源码
福音 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.zip
(预估有个8文件)
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
暂无评论