Add code coverage support using pcov
#1132
Labels
pending more info
stale
Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
Description
Generating code coverage with PHPUnit using
xdebug.mode=coverage
can be incredibly slow and uses a ton of memory (ex. over 8GB in our CI/CD pipelines).pcov
is a more lightweight code coverage solution and is prioritized overxdebug
by PHPUnit since version 7.0.9While
xdebug
andpcov
are not compatible, it's straightforward to pass the arguments to enable/disable when needed. Testing in my local environment showed a 75% decrease in both time and memory usage for integration tests.Steps To Reproduce
xdebug.mode=coverage
make dev-test-run integration
Expected Result
Code coverage reports can be generated without significantly impacting speed or memory usage.
Actual Result
Running PHPUnit with code coverage results in high memory usage and slow performance - nearly 4 times slower/heavier for integration tests.
The text was updated successfully, but these errors were encountered: