SimpleTestJS Node.js的简单测试套件框架
简单测试JS像这样写你的测试。 SimpleTest . suite ( "Test Suite 1" , function ( test ) { test . beforeEveryTest ( function ( done ) { setTimeout ( function ( ) { done ( ) ; } , 1000 ) ; } ) ; test . it ( "should work" , function ( assert ) { setTimeout ( function ( ) { assert ( "nooooo" , true ) ; } , 6000 ) ; } ) ; test . it ( "should not work" , function ( assert ) {
下载地址
用户评论