Closed oriolvinals closed 4 months ago
Adding flag --cache-directory=.phpunit
the error changes
Warming cache for static analysis ... [00:04.855]
Processes: 8
In Selector.php line 60:
No code coverage driver with path coverage support available
<cacheDirectory>
attribute in phpunit.xml
has to be set for Code Coverage to work properly with ParaTest, have you set it already?
Thanks @Slamdunk, now works correctly!
Summary
I'm trying to use
pcov
for test coverage withParaTest
. Actually, withPHPUnit
works good, but withParaTest
I have an error.Current behavior
The actual behavior is this warning/error message
Cache for static analysis has not been configured
How to reproduce: command, code and error stack trace
My command is
php -d pcov.enabled=1 vendor/bin/paratest --passthru-php="'-d' 'pcov.enabled=1'" --coverage-html=.phpunit/coverage
If i'm trying with
PHPUnit
with this commandphp -d pcov.enabled=1 bin/phpunit --coverage-html=.phpunit/coverage
the tests and the coverageExpected behavior
Run tests with coverage like it used to be with
PHPUnit
with same coverage result