Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does jasmine-node offer any type of "fail fast" option?

When I run a suite of jasmine tests from the command line I'd like some type of fail fast option so it stops at the first assertion error

Does anything like this exist today?

like image 859
Toran Billups Avatar asked Jul 19 '12 14:07

Toran Billups


2 Answers

Just threw together jasmine-bail-fast to get this behavior.

npm install jasmine-bail-fast

Then before your first spec:

require('jasmine-bail-fast');
jasmine.getEnv().bailFast();

Hoping to get it merged to jasmine core then added as a flag to jasmine-node.

like image 192
hurrymaplelad Avatar answered Sep 30 '22 19:09

hurrymaplelad


I was able to monkey-patch jasmine for fast failures.

https://gist.github.com/btakita/4718081

like image 44
Brian Takita Avatar answered Sep 30 '22 18:09

Brian Takita