gocumber:在 Go 中定义和执行小Cucumber步骤

时间:2021-06-11 06:49:44
【文件属性】:
文件名称:gocumber:在 Go 中定义和执行小Cucumber步骤
文件大小:13KB
文件格式:ZIP
更新时间:2021-06-11 06:49:44
Go 果酱 Go 代码 (golang) 包,提供用于定义和执行小Cucumber步骤的工具。 这使用了的 包。 谢谢哥们! 安装 安装: go get github . com / sittercity / gocumber 然后像往常一样导入它: package < yourpackage> import ( "github.com/sittercity/gocumber" ) 用法 一般示例: func TestYourStuff ( t * testing. T ) { steps := make (gocumber. Definitions ) steps . Given ( `I have an existing user with name "(.*)"` , func ( matches [] string , _ gocumber. StepNo
【文件预览】:
gocumber-master
----.gitignore(60B)
----Makefile(448B)
----.travis.yml(115B)
----gocumber.go(5KB)
----LICENSE(755B)
----README.md(3KB)
----example()
--------example_steps_test.go(4KB)
--------example.feature(2KB)
----.container(96B)
----gocumber_test.go(8KB)
----test()
--------valid_with_background.feature(346B)
--------valid_with_column_table_data.feature(198B)
--------valid_with_pystring_outline_multiple_examples.feature(259B)
--------valid_with_outline.feature(598B)
--------valid_with_row_table_data.feature(234B)
--------invalid.feature(53B)
--------valid_with_pystring.feature(354B)
--------valid_with_pystring_outline.feature(172B)
--------valid.feature(417B)
--------valid_with_url_params.feature(212B)
----Godeps()
--------Godeps.json(342B)

网友评论