-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Hi, I'm the current maintainer of https://github.com/paratestphp/paratest, a tool to run PHPUnit in parallel, leveraging sub-processes.
A feature we must provide is to generate code-coverage and logging accordingly to phpunit.xml specifications.
Our tool should:
- Read
phpunit.xml<filter/coverage>and<logging>sections, which may all set to all the available configurations - Disable all of them during ParaTest process
- Enable only
coverage-phpandlog-junitinto PHPUnit sub-processes - Wait for sub-processes to finish and to generate the only two cc+log above
- Merge everything together within ParaTest process
- Generate the desired cc/logs respecting again
phpunit.xml<filter/coverage>and<logging>sections
As of yet this can't be done because if <filter/coverage> and <logging> sections are specified in phpunit.xml, cc and logs are always generated except with --no-coverage/--no-logging active, but with --no-coverage/--no-logging active no cc nor logs are generated at all.
The workaround we are using right now is suggesting not to have any section in phpunit.xml except the <whitelist> one, and specify each option in the CLI, so ParaTest can easily rewrite them as wish, but of course this is sub-optimal.
So I'm asking something like vendor/bin/phpunit --no-coverage --coverage-php tmp.php --no-logging --log-junit tmp.log.
If you so kind to write down few instructions to how and where implement such feature, I'm happy to propose a PR.