The Task is that the error does bot explain that problem right.
The Error:
Project tests must be in a passing state before running Infection.
Infection runs the test suite in a RANDOM order. Make sure your tests do not have hidden dependencies.You can add these attributes to
phpunit.xml
to check it:If you don't want to let Infection run tests in a random order, set the
executionOrder
to some value, for exampleCheck the executed command to identify the problem: '/usr/bin/php7.2' '-d' 'zend_extension=xdebug.so' '/mnt/e/dev/bin/phpunit' '--configuration' '/mnt/e/dev/var/infection/
infection/phpunitConfiguration.initial.infection.xml' '-vvv'
PHPUnit reported an exit code of 143.
Refer to the PHPUnit's output below:
STDERR:
Cannot load Xdebug - it was already loaded
What i try is simple to execute follow statement:
vendor/bin/infection --threads=10 --only-covered
But when I try that statement that explained in that error, the tests will run successfully, but that is only my unit tests without the mutation-testing.
Here is an abstract of phpunit tag in my phpunit.xml.dist
<phpunit .... backupGlobals="false" colors="false" bootstrap="/mnt/e/dev/RESTler/config/bootstrap.php" executionOrder="random" resolveDependencies="true" cacheResult="false" stopOnFailure="true" stderr="false" .../>
The Versions are:
- PHPUnit version: 7.5.15
- PHP 7.2.22-1+ubuntu18.04.1+deb.sury.org+1
- Infection - PHP Mutation Testing Framework 0.14.2
- Symfony Framework 4.2
has anyone a hint of what I can try or where my error is?