Add automatic support for `behat --rerun`
schlessera opened this issue · comments
The Behat tooling should provide automated support for the --rerun
. This could work so that the --rerun
flag is always appended with a filename in a temporary folder. If rerunning was not requested, then the file should be erased first, so that the test suite runs in its entirety.
Rerunning might work through something like composer behat-rerun
or similar.
As a result, general usage would always run the entire test suite, but when you had failures, you can just type composer behat-rerun
to only run the failed scenarios. You never need to remember to first record the run for the --rerun
to be available.
Fixed via #15