Skip to content

For recent Xdebug coverage collection needs XDEBUG_MODE=coverage or xdebug.mode=coverage  #1473

@JesusValeraDev

Description

@JesusValeraDev
Question Answer
Infection version 0.20.2
Test Framework version PHPUnit 9.5.0
PHP version PHP 7.4.14 (cli) with Xdebug v3.0.2
Platform Docker (php:7.4-fpm)
Github Repo https://github.com/jenshaase/phel-lang
Output with issue

dev@php:/srv/phel-lang$ vendor/bin/infection

   ____      ____          __  _
  /  _/___  / __/__  _____/ /_(_)___  ____
  / // __ \/ /_/ _ \/ ___/ __/ / __ \/ __ \
_/ // / / / __/  __/ /__/ /_/ / /_/ / / / /
/___/_/ /_/_/  \___/\___/\__/_/\____/_/ /_/

Infection - PHP Mutation Testing Framework version 0.20.2@6035c1566af6a5a8d833a276351e5e18ed412305


Running initial test suite...

PHPUnit version: 9.5.0

 614 [============================]  1 min

In CoverageChecker.php line 169:

 The code coverage generated by the initial test run is invalid. Please report the issue on the
 infection repository "https://github.com/infection/infection".

 $ '/srv/phel-lang/vendor/phpunit/phpunit/phpunit' '--configuration' '/srv/phel-lang/data/infection/infection/
 phpunitConfiguration.initial.infection.xml' '-vvv' '--coverage-xml=/srv/phel-lang/data/infection/infection/co
 verage-xml' '--log-junit=/srv/phel-lang/data/infection/infection/junit.xml'
 PHPUnit 9.5.0 by Sebastian Bergmann and contributors.

 Runtime:       PHP 7.4.14
 Configuration: /srv/phel-lang/data/infection/infection/phpunitConfiguration.initial.infection.xml
 Random Seed:   1611098728
 Warning:       XDEBUG_MODE=coverage or xdebug.mode=coverage has to be set

 ...............................................................  63 / 608 ( 10%)
 ............................................................... 126 / 608 ( 20%)
 ............................................................... 189 / 608 ( 31%)
 ............................................................... 252 / 608 ( 41%)
 ............................................................... 315 / 608 ( 51%)
 ............................................................... 378 / 608 ( 62%)
 ............................................................... 441 / 608 ( 72%)
 ............................................................... 504 / 608 ( 82%)
 ............................................................... 567 / 608 ( 93%)
 .........................................                       608 / 608 (100%)

 Time: 01:03.278, Memory: 28.00 MB

 OK (608 tests, 861 assertions)


 Issue(s):
 - The file "index.xml" could not be found: Could not find any "index.xml" file in "/srv/phel-lang/data/infection/infection"

I got the following error:

The file "index.xml" could not be found: Could not find any "index.xml" file in 
"/srv/phel-lang/data/infection/infection"

I have been trying to find this issue but the only one seems related is this one: #30
But it's too old and I think it's not exactly the same issue.

You can take a look at the project if you want, there you are everything.

Do you have any clue about this? 😄

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions