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?
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.
I was able to monkey-patch jasmine for fast failures.
https://gist.github.com/btakita/4718081
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With