I've a Laravel project with bunch of tests. I'm using pcov to calculate code coverage, it takes about 4 minutes. But pcov doesn't support branch coverage, so I decided to use xdebug for it.
Tests execution with xdebug, with code coverage but without --path-coverage (branch coverage) takes about 8 minutes.
But tests execution with xdebug, with code coverage and with --path-coverage (branch coverage) takes more that 2 hours and can't even wait until the end:
INFO[2021-09-14 21:33:24] Executing runtests with coverage xdebug
XDEBUG_MODE=coverage
php artisan test --parallel --processes=8 --verbose --passthru=--path-coverage tests/Feature --coverage-text
Warming cache for static analysis ... done [00:00.071]
............S................................................ 61 / 1180 ( 5%)
............................................................. 122 / 1180 ( 10%)
............................................................. 183 / 1180 ( 15%)
............................................................. 244 / 1180 ( 20%)
.......
INFO[2021-09-15 00:00:05] finished in 2h 26m 40.458565176s
So my question is it even normal that --path-coverage takes more than 100x times for execution?