tap:水晶的TAP(任何测试协议)测试框架

时间:2021-05-10 12:35:17
【文件属性】:
文件名称:tap:水晶的TAP(任何测试协议)测试框架
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-10 12:35:17
Crystal 轻敲 水晶的测试框架。 安装 将此添加到应用程序的shard.yml : dependencies : tap : github : MakeNowJust/tap 用法 require " tap " T .test " awesome test name 1 " do T .ok 1 == 1 , " one is one " T .ok 1 == 2 , " one is two " end T .test " awesome test name 2 " do T .is " I am " , String T .eq 1 , 1 , " one is one again " end 然后运行它: $ crystal run ./test.cr TAP Version 13 # awesome test name 1 ok 1 one is one
【文件预览】:
tap-master
----src()
--------tap()
--------inline.cr(227B)
--------tap.cr(55B)
----spec()
--------fizzbuzz.txt(1KB)
--------expected.txt(8KB)
--------fizzbuzz.cr(838B)
--------test.cr(3KB)
----.travis.yml(40B)
----LICENSE.md(1KB)
----shard.yml(94B)
----README.md(3KB)
----Makefile(190B)
----.gitignore(148B)

网友评论