> For the complete documentation index, see [llms.txt](https://docs.roadrunner.dev/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roadrunner.dev/docs/php-worker/codecoverage.md).

# Code Coverage

RoadRunner usually starts several PHP-CLI processes, and it's not obvious how to calculate code coverage in that case. Here is some advice on how to do that:

1. Do not use [debug](/docs/php-worker/debugging.md) [pool](/docs/php-worker/pool.md) mode.
2. Preferably use `num_workers: 1`.
3. If you're using `pcov`, please read this [thread](https://github.com/orgs/roadrunner-server/discussions/1440#discussioncomment-8486186) on how to configure `pcov` to work with RoadRunner.
