-
Bug
-
Resolution: Fixed
-
Minor
-
3.3.4, 3.4.2, 3.5, 3.6
-
MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
-
MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
-
MDL-62408_master -
The profile_guided_allocate function which is supposed to divide behat tests into even-sized buckets for parallel runs is never used. The function starts with:
if (defined('PHPUNIT_TEST')) {
return false;
}
but this should be
if (defined('PHPUNIT_TEST') && PHPUNIT_TEST) {
return false;
}
since the constant is defined even when running a behat test (but defined as false). This means step or timing files are never used, limiting the benefit of parallel runs.