-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.5
-
MOODLE_405_STABLE
While playing and doing some experiments with PHPUnit it has been detected that there are ~600 warnings and errors related with incorrect "covers" annotations.
This issue is about to try to fix as many of them as possible in order to get better coverage reports.
1) Important, error: Remove any case of multiple @coversDefaultClass annotations. Only one per class is allowed. That annotation is just a shortcut / alias to avoid having to write long class FQN class names. It's important because the current cases in code completely stop PHPUnit execution.
2) Warnings: There are hundreds of warnings about invalid @covers annotation uses. They don't stop PHPUnit execution but, of course, they aren't gathering coverage properly.
And that's it. The idea is to create as many subtasks as needed to fix everything.
This can be considered done when running a complete PHPUnit run with coverage enabled doesn't emit any warning related with coverage annotations.
Ciao