PHPUnit is not producing its clover coverage report PHPUnit is not producing its clover coverage report jenkins jenkins

PHPUnit is not producing its clover coverage report


It seems like you didn't define a whitelist. Without any whitelist, no coverage data will be produced in PHPUnit 5. Try something like:

<phpunit bootstrap="./test/bootstrap.php" colors="true">    <testsuites>        <testsuite name="Tests">            <directory>./test</directory>        </testsuite>    </testsuites>    <filter>        <whitelist addUncoveredFilesFromWhitelist="true">            <directory>./lib</directory>        </whitelist>    </filter></phpunit>


There are some issues if several versions of phpunit are available on the system.

Here is a link that might help:https://github.com/sebastianbergmann/phpunit/issues/1253