nightwatch: enhancement request: option to re-run failing tests number of times
Many GUI test frameworks support an option to re-run failing tests a specified number of times. For example, I’d like to see this command:
nightwatch -s FAILING -a regression --rerun 3
give every failing test TWO more tries to pass.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 23 (2 by maintainers)
I have a solution here (https://github.com/beatfactor/nightwatch/pull/436) if anyone wants to give it a try.
If testing in an existing project, just reference this branch in your package.json file:
“nightwatch”: “git://github.com/sknopf/nightwatch.git#add_flag_for_n_retries”
To use, add
--retries <n>as a command line arg.As of 0.7 there is a
retriesCL option to rerun failed testcases: http://nightwatchjs.org/guide#command-line-options