Skip to content

feat(codecov): add a turbocov coverage driver - #455

Open
roxblnfk wants to merge 2 commits into
1.xfrom
feat/codecov-turbocov-driver
Open

roxblnfk wants to merge 2 commits into
1.xfrom
feat/codecov-turbocov-driver

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

🔍 What was changed

  • New coverage driver for turbocov on its native API (\turbocov\start/stop/get_executable_lines), line level only.
  • turbocov is picked before PCOV and Xdebug. A turbocov that cannot collect (no turbocov.collect_paths, Xdebug next to it) yields to the other drivers.
  • CoverageDriverNotAvailable takes an optional reason: under --coverage with no other driver it reports turbocov's own message, e.g. turbocov.collect_paths is not set.
  • New CI job Code Coverage (turbocov) on PHP 8.5 runs the suite with coverage through turbocov, including the driver tests, and uploads its report to Codecov next to the Xdebug one.

Review notes

  • turbocov instruments only turbocov.collect_paths, read at compile time from ini or -d. The src filter of testo.php only narrows it; there is no runtime API to widen it (Runtime API to set the collected paths shipmonk-rnd/turbocov#14).
  • \turbocov\stop() returns every instrumented file compiled or executed since the last stop, so the driver needs no waiting() list like PCOV.
  • PIE enables the extension on install; the CI job replaces that ini with its own so a cache hit loads the same build.

Checklist

Documentation

  • testo-coverage skill: driver list and a turbocov section. Driver mentions in testo-increase-coverage and testo-mutation-testing updated.

@roxblnfk
roxblnfk requested a review from a team as a code owner November 28, 2026 20:37
@codecov

codecov Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 55.71429% with 31 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...gin/codecov/src/Internal/Driver/TurbocovDriver.php 55.81% 19 Missing ⚠️
plugin/codecov/src/Internal/Driver/PathFilter.php 0.00% 11 Missing ⚠️
...decov/src/Exception/CoverageDriverNotAvailable.php 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@roxblnfk
roxblnfk force-pushed the feat/codecov-turbocov-driver branch 4 times, most recently from ad7c517 to ab480a6 Compare November 28, 2026 21:17
turbocov is picked before PCOV and Xdebug. When it is loaded but cannot collect, for example without `turbocov.collect_paths` or next to Xdebug, it yields to the other drivers, and a mandatory run without any driver fails with turbocov's own reason.

Refs #442

Assisted-By: Claude Opus 5.5 <[email protected]>
…TestSkipped()

The Testo to PHPUnit set turned every `throw new SkipTest()` into `$this->markTestSkipped()`, which fails with "Using $this when not in object context" inside a static helper. `markTestSkipped()` is static in PHPUnit.

Assisted-By: Claude Opus 5.5 <[email protected]>
@roxblnfk
roxblnfk force-pushed the feat/codecov-turbocov-driver branch from 570da23 to 146c26c Compare November 28, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant