Protractor Jasmine 2 Fail Whale
This Jasmine 2 reporter bails (quits the Jasmine process) when encountering a failed assert in a Jasmine spec.
Example:
▄██████████████▄▐█▄▄▄▄█▌
██████▌▄▌▄▐▐▌███▌▀▀██▀▀
████▄█▌▄▌▄▐▐▌▀███▄▄█▌
▄▄▄▄▄██████████████▀
Failed: No element found using locator: By.cssSelector("#erroorr")
I wrote this after discovering that Protractor could no long use jasmineNodeOpts.realtimeFailure = true
after upgrading to Jasmine 2.
Install
npm install protractor-jasmine2-fail-whale --save-dev
Usage
// Require the Reporter (in your onPrepare) var failWhale = ; // Add the Fail Whale Reporter jasmine;