Tag: js test driver

NetBeans上的JsTestDriver在断言失败后停止testing

我已经在Netbeans上用JS Test Driverbuild立了JavaScriptunit testing。 我可以通过命令行运行所有的testing。 (在Windows PowerShell上)。 运行如下,失败后testing不会停止运行: java -jar $env:JSTD\JsTestDriver-1.3.5.jar –tests all –config jsTestDriver.conf jsTestDriver.conf文件: server: http://localhost:4244 load: – test/lib/jasmine/jasmine.js – test/lib/jasmine-jstd-adapter/JasmineAdapter.js – test/unit/*.js 所有三个testing运行。 问题 在Netbeans上,testing运行在第一个断言失败时停止。 题 我怎样才能使testing运行继续完成(即使断言失败发生)? jsTestDriver.conf文件: server: http://localhost:42442 load: – test/lib/jasmine/jasmine.js – test/lib/jasmine-jstd-adapter/JasmineAdapter.js – test/unit/*.js test.js文件: AssertionsTestCase = TestCase("AssertionsTestCase"); AssertionsTestCase.prototype.testAlwaysPass = function(){ assertEquals(1, 1); assertEquals(2, 2); }; AssertionsTestCase.prototype.testAlwaysFail1 = function(){ […]