Skip to content

ci(coverage): run a turbocov coverage job next to the Xdebug one - #443

Draft
roxblnfk wants to merge 11 commits into
1.xfrom
ci/turbocov
Draft

roxblnfk wants to merge 11 commits into
1.xfrom
ci/turbocov

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

🔍 What was changed

  • Reusable workflow coverage-driver.yml, called once per baseline (Xdebug, PCOV). Each job runs the suite without coverage, with the baseline, then with turbocov on the same runner, and diffs the two clover reports.
  • turbocov is built in PCOV-impersonation mode, so the existing PcovDriver is used unchanged. The build is cached per PHP and turbocov version.
  • Each job rewrites only its own section of one PR comment: timings, overhead, coverage totals and every source line the drivers disagree on.
  • CI on this branch is trimmed to PHP 8.4. Experiment only, not meant to be merged as is.

Review notes

  • turbocov cannot be loaded next to Xdebug or PCOV, so no driver is enabled globally and each run loads its own with -d.
  • PIE builds and installs the extension but cannot enable it under the pcov name.
  • turbocov needs an explicit whitelist (core:plugin:bridge). PCOV takes a single root, so its exclude pattern narrows it to the same set.
  • Publishing goes through a shared concurrency group, otherwise the two jobs overwrite each other's section.

Checklist

Experiment for #442: turbocov in PCOV-impersonation mode, so the existing PCOV driver is exercised unchanged. Both jobs upload their clover report for comparison.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Building the extension with PIE costs ~13 s per run. The cache key pins the PHP patch version and the turbocov release, so a new release or PHP update triggers a rebuild.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Third baseline next to Xdebug and turbocov for #442, uploading its clover report as `clover-pcov`.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
… on the PR

The job renders every source line where Xdebug, PCOV and turbocov disagree and keeps it in a single PR comment, found by a marker and rewritten on each push.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Coverage driver diff

Each row is one job: the same suite (--type=!bench) run without coverage, with the baseline driver and with turbocov, one after another on the same runner. Overhead is the time added to the run without coverage.

Baseline No coverage Baseline driver turbocov Run faster Overhead smaller
Xdebug 8.7 s 29.1 s (+235 %) 11.2 s (+29 %) 2.6× 8.1×
PCOV 6.2 s 13.9 s (+123 %) 9.4 s (+51 %) 1.5× 2.4×

turbocov vs Xdebug

Commit d6cc822. Run.

Driver Files Statements Covered
Xdebug 409 13988 11620 (83.07 %)
turbocov 394 13901 11489 (82.65 %)
233 line(s) in 105 file(s) differ

✅ executed, ❌ executable but never executed, ➖ not executable: absent from that driver's report.

bridge/rector/src/Internal/PhpunitMockFactory.php

Line Xdebug turbocov Code
176 ✅ ➖ switch ($name) {

bridge/rector/src/MockeryToDouble/MockeryToDoubleRector.php

Line Xdebug turbocov Code
533 ✅ ❌ default => null,
625 ✅ ➖ switch ($name) {
992 ✅ ❌ : $arg,
1009 ✅ ➖ switch ($name) {
1016 ✅ ❌ : null;
1298 ✅ ❌ default => null,
1304 ✅ ❌ default => null,

bridge/rector/src/PestToTesto/ArchTestRector.php

Line Xdebug turbocov Code
39 ❌ ➖ arch('app')
44 ❌ ➖ // No Testo equivalent: keep in Pest or use a dedicated

bridge/rector/src/PestToTesto/TestCallToFunctionRector.php

Line Xdebug turbocov Code
271 ❌ ✅ ...$attrGroups,

bridge/rector/src/PestToTesto/UsesToTraitRector.php

Line Xdebug turbocov Code
40 ❌ ➖ uses(TestCase::class, RefreshDatabase::class);
43 ❌ ➖ final class ExampleTest extends TestCase

bridge/rector/src/PhpunitToDouble/CreateMockToDoubleRector.php

Line Xdebug turbocov Code
363 ✅ ❌ && $call->var instanceof StaticCall
364 ✅ ❌ && $this->isName($call->var->class, 'JMac\Testing\Double')
365 ✅ ❌ && $this->isName($call->var->name, 'for');
645 ✅ ❌ default => null,
691 ✅ ❌ default => null,

bridge/rector/src/PhpunitToDouble/UnconvertibleMockToDoubleRector.php

Line Xdebug turbocov Code
40 ❌ ➖ $dep = $this->getMockBuilder(Dependency::class)->disableOriginalConstructor()->getMockForAbstractCla…
43 ❌ ➖ // No faithful Double target: migrate by hand (see CreateMockToDoubleRector for the forms that do co…

bridge/rector/src/PhpunitToMockery/CreateMockToMockeryRector.php

Line Xdebug turbocov Code
350 ✅ ❌ default => null,
382 ✅ ❌ default => null,

bridge/rector/src/PhpunitToTesto/AssertMethodAttributeRector.php

Line Xdebug turbocov Code
286 ✅ ❌ : null;

bridge/rector/src/PhpunitToTesto/AssertThatConstraintRector.php

Line Xdebug turbocov Code
35 ❌ ➖ $this->assertThat($value, $this->isInstanceOf(Foo::class));
38 ❌ ➖ $this->assertThat($value, $this->isInstanceOf(Foo::class));

bridge/rector/src/PhpunitToTesto/TypedAssertCallToTestoRector.php

Line Xdebug turbocov Code
581 ✅ ➖ $chain,

bridge/rector/src/Testing/Internal/Middleware/RectorFixtureInterceptor.php

Line Xdebug turbocov Code
76 ✅ ❌ || ($dataPointer->dataset !== null && $dataPointer->dataset !== $num)
117 ❌ ➖ info: $info,
124 ✅ ➖ info: $info,
153 ✅ ❌ : $info;

bridge/rector/src/TestoToPhpunit/ExpectExceptionToPhpUnitRector.php

Line Xdebug turbocov Code
159 ✅ ❌ default => null,

bridge/rector/src/TestoToPhpunit/TypedAssertChainRector.php

Line Xdebug turbocov Code
408 ✅ ❌ default => null,

bridge/symfony-console/src/Command/Init.php

Line Xdebug turbocov Code
162 ✅ ❌ && $output->getVerbosity() > OutputInterface::VERBOSITY_QUIET
213 ✅ ➖ associative: true,

bridge/symfony-console/src/Command/Run.php

Line Xdebug turbocov Code
232 ✅ ❌ : Command::FAILURE;

core/Application/Application.php

Line Xdebug turbocov Code
138 ✅ ➖ $container,
187 ✅ ➖ $suiteResults,
191 ✅ ➖ startup: $startup,

core/Application/Config/ApplicationConfig.php

Line Xdebug turbocov Code
53 ✅ ➖ ));

core/Application/Config/DefaultServicesConfig.php

Line Xdebug turbocov Code
86 ❌ ➖ }, 1);

core/Application/Config/Plugin/ApplicationPlugins.php

Line Xdebug turbocov Code
13 ➖ ❌ $_ = [];
16 ➖ ❌ \class_exists(FilterPlugin::class) and $_[] = new FilterPlugin();
17 ➖ ❌ \class_exists(JUnitPlugin::class) and $_[] = new JUnitPlugin();
19 ➖ ❌ \class_exists(CodecovPlugin::class) and $_[] = new CodecovPlugin();
21 ➖ ❌ \class_exists(HtmlPlugin::class) and $_[] = HtmlPlugin::inert();
23 ➖ ❌ \define([NAMESPACE . '\DEFAULT_APPLICATION_PLUGINS'][0], $_);
24 ➖ ❌ unset($_);

core/Application/Config/Plugin/SuitePlugins.php

Line Xdebug turbocov Code
17 ➖ ❌ $_ = [];
18 ➖ ❌ \class_exists(AssertPlugin::class) and $_[] = new AssertPlugin();
19 ➖ ❌ \class_exists(BenchmarkPlugin::class) and $_[] = new BenchmarkPlugin();
20 ➖ ❌ \class_exists(FacadePlugin::class) and $_[] = new FacadePlugin();
21 ➖ ❌ \class_exists(InlineTestPlugin::class) and $_[] = new InlineTestPlugin();
22 ➖ ❌ \class_exists(LifecyclePlugin::class) and $_[] = new LifecyclePlugin();
23 ➖ ❌ \class_exists(SkipPlugin::class) and $_[] = new SkipPlugin();
24 ➖ ❌ \class_exists(TestPlugin::class) and $_[] = new TestPlugin();
25 ➖ ❌ \class_exists(ErrorHandlerPlugin::class) and $_[] = new ErrorHandlerPlugin();
27 ➖ ❌ \define([NAMESPACE . '\DEFAULT_SUITE_PLUGINS'][0], $_);
28 ➖ ❌ unset($_);

core/Application/Internal/Runner/CaseRunner.php

Line Xdebug turbocov Code
106 ❌ ➖ results: $results,

core/Application/Internal/Runner/SuiteRunner.php

Line Xdebug turbocov Code
56 ❌ ✅ ...$interceptors,
110 ✅ ➖ $results,

core/Application/Internal/Runner/TestRunner.php

Line Xdebug turbocov Code
65 ❌ ✅ ...$interceptors,
72 ✅ ➖ info: $info,
90 ✅ ➖ info: $info,
109 ✅ ➖ info: $info,
128 ✅ ➖ info: $info,

core/Application/Internal/SuiteFactory.php

Line Xdebug turbocov Code
117 ❌ ➖ $file,

core/Application/Internal/SuiteLocator.php

Line Xdebug turbocov Code
41 ❌ ✅ ...$interceptors,

core/Output/Html/Internal/DocumentBuilder.php

Line Xdebug turbocov Code
329 ✅ ❌ : ValuePrinter::print($item),

core/Output/Html/Internal/ReportKind.php (absent in turbocov)

Line Xdebug turbocov Code
13 ❌ ➖ enum ReportKind

core/Output/JUnit/Internal/JUnitWriter.php

Line Xdebug turbocov Code
455 ✅ ➖ \ENT_NOQUOTES,

core/Output/Rendering/Diff/DiffOp.php (absent in turbocov)

Line Xdebug turbocov Code
13 ❌ ➖ enum DiffOp

core/Output/Teamcity/Teamcity/TeamcityLogger.php

Line Xdebug turbocov Code
98 ✅ ❌ $modes !== [] => Environment::getXDebugVersion() . self::dim(' (' . \implode(', ', $modes) . ')'),
556 ✅ ➖ 'Test aborted',
577 ✅ ➖ "\nWarning: This test has been marked as risky",

core/Output/Terminal/Renderer/DotSymbol.php (absent in turbocov)

Line Xdebug turbocov Code
10 ❌ ➖ enum DotSymbol: string

core/Output/Terminal/Renderer/TerminalLogger.php

Line Xdebug turbocov Code
323 ✅ ❌ $modes !== [] => Environment::getXDebugVersion() . Style::dim(' (' . \implode(', ', $modes) . ')'),

core/Output/Terminal/TerminalPlugin.php

Line Xdebug turbocov Code
116 ✅ ❌ : ProgramStatus::detect($container->get(ConsoleStreams::class)->stdout);

core/Pipeline/Internal/AttributesInterceptor.php

Line Xdebug turbocov Code
63 ✅ ➖ },
75 ❌ ✅ ...$interceptors,
77 ✅ ➖ $next,
105 ✅ ➖ },
118 ❌ ✅ ...$interceptors,
120 ✅ ➖ $next,

core/Pipeline/Internal/Sorter.php

Line Xdebug turbocov Code
92 ✅ ➖ $class,

core/Testing/Helper/TestRunner.php

Line Xdebug turbocov Code
74 ✅ ➖ attributeClass: TestingSuite::class,
75 ✅ ➖ includeClasses: true,

core/Tokenizer/Reflection/TokenizedFile.php

Line Xdebug turbocov Code
587 ❌ ✅ empty($invocationTID)
630 ✅ ➖ $invocationTID,

coverage-probe/src/Constructs.php

Line Xdebug turbocov Code
87 ✅ ❌ : null;

coverage-probe/src/EdgeCases.php

Line Xdebug turbocov Code
151 ✅ ➖ function conditional(): string

coverage-probe/src/Modern.php

Line Xdebug turbocov Code
35 ➖ ❌ return 'never read';
93 ✅ ➖ return \sprintf('%.1f', $value);
102 ✅ ➖ switch ($code) {

coverage-probe/src/skipped-operands-namespace.php

Line Xdebug turbocov Code
12 ✅ ❌ || $b);
17 ✅ ❌ ?? 'none');

coverage-probe/src/skipped-operands.php

Line Xdebug turbocov Code
14 ✅ ❌ || $c
22 ✅ ❌ && $b;
27 ✅ ❌ : 'else';
31 ✅ ❌ ?? strtoupper('b');
36 ✅ ❌ ?: 'c';
42 ✅ ❌ default => 'other',
48 ✅ ❌ ?->count();
53 ✅ ❌ && $i < 1
62 ✅ ❌ ?? 'none',
69 ✅ ❌ ?? 'none'
75 ✅ ❌ ?? 'none'
83 ✅ ❌ ?? 'none');
88 ✅ ❌ : 'else');
93 ✅ ❌ ?? 'none',
94 ✅ ❌ default => 'other',
105 ✅ ❌ && $b
106 ✅ ❌ && $c
117 ✅ ❌ || $c
126 ✅ ❌ default => throw new LogicException('none'),
136 ✅ ❌ ProbeSuit::Spades => 'black',
142 ❌ ✅ ...match ($b) {
144 ✅ ❌ 2 => ['two'],
150 ✅ ❌ ?: throw new LogicException('none');
157 ✅ ❌ 3,
164 ✅ ❌ : 'c'
235 ✅ ❌ || $b);
239 ✅ ❌ ?? $b);

plugin/assert/Assert.php

Line Xdebug turbocov Code
58 ✅ ➖ expected: $expected,
81 ✅ ➖ expected: $expected,
104 ✅ ➖ expected: $expected,
127 ✅ ➖ expected: $expected,
222 ✅ ➖ expected: $needle,
365 ✅ ➖ expected: $expected,

plugin/assert/src/Api/Builtin/ArrayType.php (absent in turbocov)

Line Xdebug turbocov Code
17 ❌ ➖ interface ArrayType extends IterableType

plugin/assert/src/Api/Builtin/FloatType.php (absent in turbocov)

Line Xdebug turbocov Code
13 ❌ ➖ interface FloatType extends NumericType {}

plugin/assert/src/Api/Builtin/IntType.php (absent in turbocov)

Line Xdebug turbocov Code
13 ❌ ➖ interface IntType extends NumericType {}

plugin/assert/src/Api/Json/JsonAbstract.php (absent in turbocov)

Line Xdebug turbocov Code
13 ❌ ➖ interface JsonAbstract extends JsonArray, JsonObject

plugin/assert/src/Api/Json/JsonArray.php (absent in turbocov)

Line Xdebug turbocov Code
13 ❌ ➖ interface JsonArray extends JsonStructure {}

plugin/assert/src/Api/Json/JsonObject.php (absent in turbocov)

Line Xdebug turbocov Code
13 ❌ ➖ interface JsonObject extends JsonStructure

plugin/assert/src/Api/Json/JsonStructure.php (absent in turbocov)

Line Xdebug turbocov Code
13 ❌ ➖ interface JsonStructure extends JsonCommon

plugin/assert/src/ExpectNoAssertions.php (absent in turbocov)

Line Xdebug turbocov Code
32 ❌ ➖ final readonly class ExpectNoAssertions implements Interceptable {}

plugin/assert/src/Internal/Assertion/AssertArray.php

Line Xdebug turbocov Code
21 ✅ ➖ final readonly class AssertArray implements ArrayType
72 ✅ ➖ assertion: $str,
104 ✅ ➖ assertion: $str,

plugin/assert/src/Internal/Assertion/AssertCallable.php

Line Xdebug turbocov Code
19 ✅ ➖ final readonly class AssertCallable implements CallableType

plugin/assert/src/Internal/Assertion/AssertFloat.php

Line Xdebug turbocov Code
19 ✅ ➖ final readonly class AssertFloat implements FloatType

plugin/assert/src/Internal/Assertion/AssertInt.php

Line Xdebug turbocov Code
19 ✅ ➖ final readonly class AssertInt implements IntType

plugin/assert/src/Internal/Assertion/AssertIterable.php

Line Xdebug turbocov Code
19 ❌ ➖ final readonly class AssertIterable implements IterableType

plugin/assert/src/Internal/Assertion/AssertJson.php

Line Xdebug turbocov Code
28 ❌ ➖ final readonly class AssertJson implements JsonAbstract
68 ✅ ➖ assertion: $str,
161 ✅ ➖ assertion: $str,
179 ✅ ➖ assertion: $str,
197 ✅ ➖ assertion: $str,
215 ✅ ➖ assertion: $str,
235 ✅ ➖ assertion: $str,
326 ✅ ❌ default => \get_debug_type($this->decoded),

plugin/assert/src/Internal/Assertion/AssertObject.php

Line Xdebug turbocov Code
19 ❌ ➖ final readonly class AssertObject implements ObjectType

plugin/assert/src/Internal/Assertion/AssertString.php

Line Xdebug turbocov Code
23 ❌ ➖ final readonly class AssertString implements StringType

plugin/assert/src/Internal/Assertion/Json/TypeMatcher.php

Line Xdebug turbocov Code
87 ✅ ❌ default => false,

plugin/assert/src/Internal/Assertion/Traits/IterableTrait.php

Line Xdebug turbocov Code
172 ✅ ➖ assertion: $str,

plugin/assert/src/Internal/ExpectExceptionConfigurator.php

Line Xdebug turbocov Code
33 ➖ ❌ $context->expectations[] = ExpectExceptionHandler::createEquals($this->options->class);
35 ➖ ❌ return $next($info);

plugin/assert/src/Internal/Expectation/ExpectExceptionHandler.php

Line Xdebug turbocov Code
22 ❌ ➖ final class ExpectExceptionHandler implements ExpectedException
208 ✅ ➖ expectation: $headline,
218 ✅ ➖ expectation: $headline,
232 ✅ ➖ expectation: $headline,
244 ✅ ❌ : $actual::class . ' is thrown as an instance of ' . $class);
260 ✅ ➖ expectation: $label,
305 ✅ ➖ expectation: $label,

plugin/assert/src/Internal/Pattern.php

Line Xdebug turbocov Code
29 ❌ ➖ });

plugin/assert/src/Internal/Support.php

Line Xdebug turbocov Code
46 ✅ ➖ '/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/',

plugin/assert/src/State/Assertion.php (absent in turbocov)

Line Xdebug turbocov Code
22 ✅ ➖ interface Assertion extends Record

plugin/assert/src/State/Assertion/AssertionComposite.php

Line Xdebug turbocov Code
14 ❌ ➖ final class AssertionComposite extends AssertionSuccess implements CompositeRecord

plugin/assert/src/State/Assertion/AssertionException.php

Line Xdebug turbocov Code
12 ❌ ➖ class AssertionException extends \LogicException implements Assertion

plugin/assert/src/State/Assertion/AssertionSuccess.php

Line Xdebug turbocov Code
12 ✅ ➖ class AssertionSuccess implements Assertion

plugin/assert/src/State/Assertion/ComparisonFailure.php

Line Xdebug turbocov Code
16 ❌ ➖ class ComparisonFailure extends AssertionException

plugin/assert/src/State/CompositeRecord.php (absent in turbocov)

Line Xdebug turbocov Code
10 ❌ ➖ interface CompositeRecord extends Assertion

plugin/assert/src/State/Expectation/ExpectLeaksFailure.php

Line Xdebug turbocov Code
36 ➖ ❌ : \sprintf(
37 ➖ ❌ '%d of %d objects were garbage collected',
38 ➖ ❌ $cnt,

plugin/assert/src/State/Expectation/ExpectNotLeaksFailure.php

Line Xdebug turbocov Code
38 ➖ ❌ : \sprintf(
39 ➖ ❌ '%d of %d objects were not garbage collected',
40 ➖ ❌ $cnt,

plugin/assert/src/State/Expectation/ExpectationFailed.php

Line Xdebug turbocov Code
12 ❌ ➖ class ExpectationFailed extends \LogicException implements Expectation

plugin/assert/src/State/Record.php (absent in turbocov)

Line Xdebug turbocov Code
10 ✅ ➖ interface Record extends \Stringable

plugin/bench/src/Dto/Report/InsufficientIterTime.php

Line Xdebug turbocov Code
12 ❌ ➖ final readonly class InsufficientIterTime extends Report

plugin/bench/src/Dto/Report/Severity.php (absent in turbocov)

Line Xdebug turbocov Code
7 ❌ ➖ enum Severity

plugin/bench/src/Exception/BenchAttributeMissingException.php

Line Xdebug turbocov Code
23 ➖ ❌ \sprintf(
24 ➖ ❌ 'Target Bench attribute is missing for %s%s(). This indicates a broken test pipeline.',

plugin/bench/src/Internal/Calculator.php

Line Xdebug turbocov Code
106 ✅ ➖ 0.0,

plugin/bench/src/Internal/Pipeline/BenchInterceptor.php

Line Xdebug turbocov Code
111 ✅ ➖ info: $info,

plugin/codecov/src/Exception/BranchCoverageUnsafeInFiber.php

Line Xdebug turbocov Code
29 ➖ ❌ 'Coverage level %s cannot be collected inside a fiber with XDebug %s: the extension '
30 ➖ ❌ . 'crashes the process. Upgrade XDebug to %s or newer, or drop the level to %s.',
32 ➖ ❌ $version,
33 ➖ ❌ $required,

plugin/codecov/src/Internal/CoverageActivation.php

Line Xdebug turbocov Code
231 ✅ ❌ self::isXdebugCoverageEnabled() => XdebugDriver::create($src),
232 ✅ ❌ default => null,
249 ✅ ❌ if (!\extension_loaded('xdebug')) {
253 ✅ ❌ $modes = xdebug_info('mode');
254 ✅ ❌ return \is_array($modes) && \in_array('coverage', $modes, true);

plugin/codecov/src/Internal/CoverageFilter.php

Line Xdebug turbocov Code
99 ✅ ➖ ),

plugin/codecov/src/Internal/Driver/PcovDriver.php

Line Xdebug turbocov Code
63 ❌ ✅ }
68 ❌ ✅ \pcov\stop();

plugin/codecov/src/Internal/Driver/XdebugDriver.php

Line Xdebug turbocov Code
88 ✅ ❌ }
93 ✅ ❌ $data = xdebug_get_code_coverage();

plugin/codecov/src/Internal/Middleware/CoverageTestInterceptor.php

Line Xdebug turbocov Code
167 ✅ ➖ $class,

plugin/codecov/src/Internal/ReportFile.php

Line Xdebug turbocov Code
28 ✅ ➖ $path,
43 ✅ ➖ $path,

plugin/codecov/src/Report/CoberturaReport.php

Line Xdebug turbocov Code
23 ❌ ➖ final readonly class CoberturaReport implements CoverageReport

plugin/codecov/src/Report/PhpUnitXmlReport.php

Line Xdebug turbocov Code
36 ❌ ➖ final readonly class PhpUnitXmlReport implements CoverageReport

plugin/convention/src/Internal/NamingConventionLocator.php

Line Xdebug turbocov Code
31 ✅ ➖ final readonly class NamingConventionLocator implements FileLocatorInterceptor, CaseLocatorIntercept…

plugin/convention/src/NamingConventionPlugin.php

Line Xdebug turbocov Code
54 ✅ ➖ final readonly class NamingConventionPlugin implements PluginConfigurator

plugin/data/src/DataCross.php

Line Xdebug turbocov Code
22 ❌ ➖ final readonly class DataCross implements Interceptable, DataProviderAttribute

plugin/data/src/DataUnion.php

Line Xdebug turbocov Code
22 ❌ ➖ final readonly class DataUnion implements Interceptable, DataProviderAttribute

plugin/data/src/DataZip.php

Line Xdebug turbocov Code
22 ❌ ➖ final readonly class DataZip implements Interceptable, DataProviderAttribute

plugin/data/src/Internal/DataProviderInterceptor.php

Line Xdebug turbocov Code
99 ✅ ➖ $info,
124 ✅ ➖ info: $info,
131 ✅ ➖ info: $info,
161 ✅ ❌ default => throw new \RuntimeException('Unknown Data Provider Attribute type.'),
218 ✅ ➖ ),

plugin/data/src/Internal/DeferredGenerator.php

Line Xdebug turbocov Code
15 ❌ ➖ final class DeferredGenerator implements \Iterator

plugin/error-handler/src/CapturedError.php

Line Xdebug turbocov Code
44 ✅ ❌ default => 'Error',

plugin/fiber/src/Exception/CompositeException.php

Line Xdebug turbocov Code
40 ❌ ✅ $e::class,
42 ✅ ➖ ),
50 ❌ ✅ \count($errors),

plugin/inline/src/Internal/Exception/TestInlineAttributeMissingException.php

Line Xdebug turbocov Code
32 ➖ ❌ \sprintf(
33 ➖ ❌ 'Target TestInline attribute is missing for %s%s(). This indicates a broken test pipeline.',

plugin/inline/src/Internal/InlineInterceptor.php

Line Xdebug turbocov Code
112 ✅ ➖ info: $info,

plugin/lifecycle/src/Internal/LifecycleInterceptor.php

Line Xdebug turbocov Code
70 ✅ ➖ attributeClass: LifecycleAttribute::class,
152 ✅ ➖ attributeClass: LifecycleAttribute::class,
193 ✅ ➖ attributeClass: LifecycleAttribute::class,

plugin/repeat/src/Internal/RepeatInterceptor.php

Line Xdebug turbocov Code
26 ✅ ➖ final readonly class RepeatInterceptor implements TestRunInterceptor

plugin/retry/src/Interceptor/RetryPolicyRunInterceptor.php

Line Xdebug turbocov Code
27 ✅ ➖ final readonly class RetryPolicyRunInterceptor implements TestRunInterceptor

plugin/skip/src/Internal/SkipInterceptor.php

Line Xdebug turbocov Code
41 ❌ ➖ final readonly class SkipInterceptor implements TestRunInterceptor
47 ✅ ➖ info: $info,
76 ✅ ➖ attributeClass: Skip::class,
83 ✅ ➖ attributeClass: Skip::class,

turbocov vs PCOV

Commit d6cc822. Run.

Driver Files Statements Covered
PCOV 394 13891 11541 (83.08 %)
turbocov 394 13901 11489 (82.65 %)
70 line(s) in 21 file(s) differ

✅ executed, ❌ executable but never executed, ➖ not executable: absent from that driver's report.

bridge/rector/src/MockeryToDouble/MockeryToDoubleRector.php

Line PCOV turbocov Code
533 ✅ ❌ default => null,
992 ✅ ❌ : $arg,
1016 ✅ ❌ : null;
1298 ✅ ❌ default => null,
1304 ✅ ❌ default => null,

bridge/rector/src/PhpunitToDouble/CreateMockToDoubleRector.php

Line PCOV turbocov Code
363 ✅ ❌ && $call->var instanceof StaticCall
364 ✅ ❌ && $this->isName($call->var->class, 'JMac\Testing\Double')
365 ✅ ❌ && $this->isName($call->var->name, 'for');
645 ✅ ❌ default => null,
691 ✅ ❌ default => null,

bridge/rector/src/PhpunitToMockery/CreateMockToMockeryRector.php

Line PCOV turbocov Code
350 ✅ ❌ default => null,
382 ✅ ❌ default => null,

bridge/rector/src/PhpunitToTesto/AssertMethodAttributeRector.php

Line PCOV turbocov Code
286 ✅ ❌ : null;

bridge/rector/src/Testing/Internal/Middleware/RectorFixtureInterceptor.php

Line PCOV turbocov Code
76 ✅ ❌ || ($dataPointer->dataset !== null && $dataPointer->dataset !== $num)
153 ✅ ❌ : $info;

bridge/rector/src/TestoToPhpunit/ExpectExceptionToPhpUnitRector.php

Line PCOV turbocov Code
159 ✅ ❌ default => null,

bridge/rector/src/TestoToPhpunit/TypedAssertChainRector.php

Line PCOV turbocov Code
408 ✅ ❌ default => null,

bridge/symfony-console/src/Command/Init.php

Line PCOV turbocov Code
162 ✅ ❌ && $output->getVerbosity() > OutputInterface::VERBOSITY_QUIET

bridge/symfony-console/src/Command/Run.php

Line PCOV turbocov Code
232 ✅ ❌ : Command::FAILURE;

core/Output/Html/Internal/DocumentBuilder.php

Line PCOV turbocov Code
329 ✅ ❌ : ValuePrinter::print($item),

core/Output/Terminal/TerminalPlugin.php

Line PCOV turbocov Code
116 ✅ ❌ : ProgramStatus::detect($container->get(ConsoleStreams::class)->stdout);

coverage-probe/src/Constructs.php

Line PCOV turbocov Code
87 ✅ ❌ : null;

coverage-probe/src/Modern.php

Line PCOV turbocov Code
17 ➖ ✅ return $this->celsius;
20 ➖ ✅ if ($value < -273.15) {
21 ➖ ❌ throw new \InvalidArgumentException('below absolute zero');
24 ➖ ✅ $this->celsius = $value;
25 ➖ ✅ }
29 ➖ ✅ get => $this->celsius * 9 / 5
30 ➖ ✅ + 32;
35 ➖ ❌ return 'never read';
40 ➖ ✅ set => trim($value)
41 ➖ ✅ ?: 'unnamed';

coverage-probe/src/skipped-operands-namespace.php

Line PCOV turbocov Code
12 ✅ ❌ || $b);
17 ✅ ❌ ?? 'none');

coverage-probe/src/skipped-operands.php

Line PCOV turbocov Code
13 ✅ ❌ || $b
14 ✅ ❌ || $c
22 ✅ ❌ && $b;
27 ✅ ❌ : 'else';
31 ✅ ❌ ?? strtoupper('b');
35 ✅ ❌ ?: $b
36 ✅ ❌ ?: 'c';
42 ✅ ❌ default => 'other',
48 ✅ ❌ ?->count();
53 ✅ ❌ && $i < 1
62 ✅ ❌ ?? 'none',
69 ✅ ❌ ?? 'none'
75 ✅ ❌ ?? 'none'
83 ✅ ❌ ?? 'none');
88 ✅ ❌ : 'else');
93 ✅ ❌ ?? 'none',
94 ✅ ❌ default => 'other',
100 ✅ ❌ : [3, 4];
105 ✅ ❌ && $b
106 ✅ ❌ && $c
116 ✅ ❌ || $b
117 ✅ ❌ || $c
126 ✅ ❌ default => throw new LogicException('none'),
136 ✅ ❌ ProbeSuit::Spades => 'black',
144 ✅ ❌ 2 => ['two'],
150 ✅ ❌ ?: throw new LogicException('none');
157 ✅ ❌ 3,
164 ✅ ❌ : 'c'
235 ✅ ❌ || $b);
239 ✅ ❌ ?? $b);

plugin/assert/src/Internal/Assertion/AssertJson.php

Line PCOV turbocov Code
326 ✅ ❌ default => \get_debug_type($this->decoded),

plugin/assert/src/Internal/Assertion/Json/TypeMatcher.php

Line PCOV turbocov Code
87 ✅ ❌ default => false,

plugin/assert/src/Internal/Expectation/ExpectExceptionHandler.php

Line PCOV turbocov Code
244 ✅ ❌ : $actual::class . ' is thrown as an instance of ' . $class);

plugin/codecov/src/Internal/CoverageActivation.php

Line PCOV turbocov Code
232 ✅ ❌ default => null,

plugin/data/src/Internal/DataProviderInterceptor.php

Line PCOV turbocov Code
161 ✅ ❌ default => throw new \RuntimeException('Unknown Data Provider Attribute type.'),

plugin/error-handler/src/CapturedError.php

Line PCOV turbocov Code
44 ✅ ❌ default => 'Error',

…anges

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
ci: limit the experiment branch to PHP 8.4 and drop the 32-bit, pull_request and security runs

turbocov is the subject, Xdebug and PCOV are baselines, each compared in one collapsible section. The trimmed CI keeps one regular test run next to the coverage jobs.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Each baseline job runs the suite without coverage, with Xdebug or PCOV, then with turbocov, so timings share one machine. Every job rewrites only its own section of the PR comment; publishing is serialized through a concurrency group so the two read-modify-write cycles do not drop each other's section.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
PCOV also instrumented `tests/`, which inflated its timing against turbocov.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
The line-state legend moves into each diff spoiler, next to the marks it explains.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
…s report differently

ci(coverage): run the driver comparison on PHP 8.5

The probe ports the turbocov fixtures for skipped operands, language constructs, edge cases and property hooks, plus asymmetric visibility, the pipe operator, clone with and a closure in a constant expression. Each function runs with one set of arguments, so lines one call skips stay visible in the per-line diff. PHP 8.5 is the newest version turbocov supports.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
…branch

Changes to testo.php and the sources started mutation testing and the code-style fixer alongside the comparison.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
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