-
Task
-
Resolution: Fixed
-
Minor
-
4.3
-
MOODLE_403_STABLE
-
MOODLE_403_STABLE
-
While looking to the moodle behat extension in another issue it was detected that we still have there the --skip-passed option.
That option was added in early Behat 3.1.x - 3.2.x days, because the --rerun option built-in Behat was not working ok and it was impossible to just rerun failed tests (something that now is solved and we use every day).
This --skip-passed option was implemented in the extension @ MDL-55853. Basically what it does is to create a list of passed scenarios and, in next executions, skip all them. As said, this was a workaround to the --rerun option that was not working ok in the past.
Finally, upstream --rerun behaviour was fixed for Behat 3.2.0, see https://github.com/Behat/Behat/pull/933 and MDL-55769, so we did stop needing the --skip-passed workaround.
So:
- We are not using the --skip-passed option since 2016.
- The upstream --rerun option provides exactly the same and we are using it.
- I'm sure that (near) nobody is using the old option because it's not documented (in fact I had forgotten about it completely).
- Hence, it's superfluous code that can be removed.
Plan:
- Basically, revert what was done by this commit in the moodle-behat-extension (that now is bundled in core).
- Document the removal of the option, just in case somebody is still using it. I've searched out there, in docs, github, google.. and haven't found any reference other that the issues and PRs commented above.
- Verify that everything continues working ok (core, moodle-plugin-ci...)
This can be done master only, as far as it's not used, we can leave it dying in stable branches.
Ciao