I added fail-fast to my cucumberOpts like below:
cucumberOpts: {
require: [
conf.paths.e2e + '/utilities/hooks.js',
],
format: 'pretty',
'fail-fast': true
},
I have all my tests in a path like this: C:/tests/*.feature
I run my tests like this: protractor protractor.conf.js
This works fine as in it will stop the tests as soon as there's an error. But I'm having these tests run in a CI server like Bamboo and I was hoping to give rapid feedback while continuing to run the rest of the tests on faillure.
So if I have 4 tests in total
, if the first test fails
, I want to fail-fast on that first test
then I want to continue running the other 3 tests/feature files
.
What it is doing now, which I don't like, is it will fail as soon as one test fails and it will NOT run any of the other feature files.
Any idea ?