syrup:扩展的Mocha测试,具有基于文件的代码片段,测试并行性和测试相关性

时间:2021-04-30 17:44:30
【文件属性】:
文件名称:syrup:扩展的Mocha测试,具有基于文件的代码片段,测试并行性和测试相关性
文件大小:40KB
文件格式:ZIP
更新时间:2021-04-30 17:44:30
JavaScript 糖浆 tl; dw 编写测试 describe ( 'Array' , function ( ) { describe ( '#indexOf()' , function ( ) { it ( 'should return -1 when the value is not present' , function ( ) { Assert . equal ( - 1 , [ 1 , 2 , 3 ] . indexOf ( 4 ) ) ; } ) ; } ) ; } ) ; 设置并注册用于测试的方案 require ( 'syrup' ) . debug ( ) . scenario ( 'example:arrays' , { entrypoint : ` ${ __dirname }
【文件预览】:
syrup-master
----.gitignore(59B)
----README.md(2KB)
----.nvmrc(10B)
----tests()
--------test_20_register_scenario.js(798B)
--------test_10_register_globals.js(231B)
--------bootstrap.js(60B)
--------test_21_run_scenario.js(757B)
--------globals.js(66B)
----examples()
--------basic()
----package.json(866B)
----src()
--------Syrup.js(5KB)
--------reports()
--------libs()
--------workers()
--------globals()
--------Worker.js(1KB)
--------errors()
----index.js(114B)
----.travis.yml(66B)
----package-lock.json(67KB)

网友评论