-
Bug
-
Resolution: Fixed
-
Minor
-
4.3.4, 4.4, 4.5
This comes from MDLSITE-6625, where some scripts and GH workflows have been created to be able to detect which tests have dependencies not satisfied when running individually.
There are 2 ways to run tests individually:
A) Manually, when you just want to run one test (with --filter + file, for example).
B) Configured, relying on PHPUnit's own --process-isolation feature
In this issue we are focussing on the first ones (A), to guarantee that all the tests can be run individually and there aren't missing dependencies, normally not detected when all the tests are run together. Work on the laters (B) will continue in the linked MDLSITE.
So this issue is about to:
- Include a new GH workflow, that can be run under demand (pretty much like the current windows one) that will be able to detect any new problem by running the tests one by one.
- Fix all cases in core until we get the workflow passing.
As of April 26th 2024, we have 38/39 failures detected, they are listed in this GH workflow run. We'll take the information there as the initial point to go fixing tests.
Ciao
PS: Some runs of the new workflow (manual triggered/dispatched only) with the patches already applied:
- Testing discovered
-
MDL-81736 Decide what to do with test_grade_grade_set_locked()
- Open
-
MDL-81737 Decide what to do with 3 lib/tests/rtlcss_test.php tests
- Open
- will help resolve
-
MDL-80596 Unit test failure with adminlib_test
- Closed
-
MDLSITE-6625 Improve detection of isolate test case failures
- Open