-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pcov => xdebug => phpdbg for phpunit code coverage
Right now we are only using phpdbg for phpunit code coverage. And it's causing some problems with latest (8.0, 8.1) php versions. Also, since phpunit 8, its code coverage tool supports pcov, that is the lighter and better alternative. And then, xdebug running in coverage mode has become way better in recent versions. So, with this patch applied, moodle-plugin-ci will look for the "best" code coverage alternative (pcov => xdebug => phpdbg) in every run. This guarantees that existing automations, not having pcov or xdebug available will continue fall-backing to phpdbg. But if any of the 2 extensions are available, we'll be using them. No matter of the above (fully automatic), it's also possible to configure the desired code coverage tool with 3 new options, in case it's needed to force any: - coverage-pcov - coverage-xdebug - coverage-phpdbg Added support to the '--verbose' option to be passed to phpunit (useful to debug options or see details about skipped tests). Includes modifications to both GHA docs and template to show the new options. And, also, changes to own CI tests to have both pcov and xdebug used all the time.
- Loading branch information
Showing
9 changed files
with
97 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters