Search by

shipmonk / turbocov-phpunit

janedbalshipmonk

PHPUnit code coverage driver for the turbocov extension, which runs covered code at plain PHP speed

Package info

github.com/shipmonk-rnd/turbocov-phpunit

pkg:composer/shipmonk/turbocov-phpunit

Statistics

Installs: 4 483

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

0.1.0 2026-11-20 07:33 UTC

This package is auto-updated.

Last update: 2026-11-20 07:47:14 UTC


README

PHPUnit coverage driver for the turbocov extension.

PHPUnit knows only Xdebug and PCOV. This package gives it one class, ShipMonk\Turbocov\TurbocovDriver, that collects coverage with turbocov.

Performance

Time that a coverage driver adds to the test suite of Carbon

Installation

pie install shipmonk/turbocov
composer require --dev shipmonk/turbocov-phpunit

Usage

Set the driver in phpunit.xml:

<coverage driver="ShipMonk\Turbocov\TurbocovDriver"/>

Then run PHPUnit with the paths to collect:

php -d turbocov.collect_paths=src vendor/bin/phpunit --coverage-html coverage

The README of turbocov describes the settings, the limitations and the use with older PHPUnit.

Requirements

  • PHPUnit 13.3 or later
  • The turbocov extension

Behavior

The driver stops the run before the first test when turbocov cannot collect coverage. PHPUnit shows the reason. A wrong setup does not give an empty report.

License

MIT. See LICENSE.