-
Bug
-
Resolution: Fixed
-
Minor
-
3.5.5, 3.6, 3.7
-
MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
When a parallel behat is executed using admin/tool/behat/cli/run.php and there are failures, trying to rerun them using vendor/bin/behat fails sometimes.
Curiously reruns executed via the same admin/tool/behat/cli/run.php work fine. Also reruns when the initial execution was not parallel do their work perfectly.
Tracing down the problem... there is a well hidden dependency about how the current rerun to perform is decided based in the content of the --config parameter. Basically:
- If vendor/bin/behat uses --config path/to/behat.yml, rerun works.
- If vendor/bin/behat uses --config=path/to/behat.yml, rerun fails with the weird/miss-leading error:
Install Behat before enabling it, use:
php admin/tool/behat/cli/init.php
This issue is about to make reruns to support both 1 & 2 above, so the mysterious dependency is gone and there isn't that confusion anymore.