You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When enabling the XDebug extension to run the ./vendor/bin/infection, it will get the following error message:
The code coverage generated by the initial test run is invalid. Please report the issue on the
infection repository "https://github.com/infection/infection".
$ '/data/php-gender/vendor/bin/phpunit' '--configuration' '/tmp/infection/p
hpunitConfiguration.initial.infection.xml' '--coverage-xml=/tmp/infection/c
overage-xml' '--log-junit=/tmp/infection/junit.xml'
PHPUnit 9.5.21 #StandWithUkraine
Random Seed: 1655794267
Warning: XDEBUG_MODE=coverage or xdebug.mode=coverage has to be set
. 1 / 1 (
100%)
Time: 00:00.006, Memory: 8.00 MB
OK (1 test, 3 assertions)
Issue(s):
- The file "index.xml" could not be found: Could not find any "index.xml" file in "/tmp/infection"
If adding the XDEBUG_MODE=coverage to declare the environment variable, it will not get above error message.
As this comment says, it's not necessary to do that. It seems to be a bug.
The text was updated successfully, but these errors were encountered:
php -v
)When enabling the
XDebug
extension to run the./vendor/bin/infection
, it will get the following error message:XDEBUG_MODE=coverage
to declare the environment variable, it will not get above error message.The text was updated successfully, but these errors were encountered: