Skip to content

Commit ac67ebd

Browse files
committed
Fix coverage generation by adding php-code-coverage library
Root cause identified: PHPUnit cannot generate coverage reports without the phpunit/php-code-coverage library. While yoast/wp-test-utils provides PHPUnit, it doesn't include the code coverage components. Adding phpunit/php-code-coverage ^9.2 to match PHPUnit 9.6.29. This will allow PCOV to work properly with PHPUnit to generate coverage.xml files.
1 parent a4a96a0 commit ac67ebd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"szepeviktor/phpstan-wordpress": "^2.0",
1919
"phpstan/extension-installer": "^1.4",
2020
"yoast/yoastcs": "^3.0",
21-
"friendsofphp/php-cs-fixer": "^3.75"
21+
"friendsofphp/php-cs-fixer": "^3.75",
22+
"phpunit/php-code-coverage": "^9.2"
2223
},
2324
"scripts": {
2425
"check-cs": [

0 commit comments

Comments
 (0)