jasmine-node icon indicating copy to clipboard operation
jasmine-node copied to clipboard

Running the same tests multiple times with different settings

Open shacharz opened this issue 10 years ago • 0 comments

Hi, I"m using: jasmine.executeSpecsInFolder({specFolders:[__dirname + '/specs']}, (function(runner, log) { if (runner.results().failedCount === 0) { return process.exit(0); } else { return process.exit(1); } }), isVerbose, showColors); Which I want to run few times with different settings, e.g different browser drivers.

If I run it only once my tests are fine, if I try to repeat it I get an error: ...\node_modules\jasmine-node\lib\jasmine-node/jasmine-1.3.1.js:2156 if (self.blocks[self.index].abort) { ^ TypeError: Cannot read property 'abort' of undefined at onComplete (...\node_modules\jasmine-node\lib\jasmine-node/jasmine-1.3.1.js:2156:36) at jasmine.WaitsForBlock.execute (...\node_modules\jasmine-node\lib\jasmine-node/jasmine-1.3.1.js:2659:5) at null._onTimeout (...\node_modules\jasmine-node\lib\jasmine-node/jasmine-1.3.1.js:2673:12) at Timer.listOnTimeout as ontimeout

shacharz avatar Jul 08 '14 06:07 shacharz