简单测试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 ) {