Skip to content

Commit

Permalink
fix: warn if no code coverage driver
Browse files Browse the repository at this point in the history
  • Loading branch information
calebdw committed Jan 11, 2024
1 parent 3457841 commit be407ac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Plugins/Parallel/Paratest/WrapperRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,15 @@ private function generateCodeCoverageReports(): void
$this->codeCoverageFilterRegistry,
false,
);
if (! $coverageManager->isActive()) {
$this->output->writeln([
'',
' <fg=black;bg=yellow;options=bold> WARN </> No code coverage driver is available.</>',
'',
]);

return;
}
$coverageMerger = new CoverageMerger($coverageManager->codeCoverage());
foreach ($this->coverageFiles as $coverageFile) {
$coverageMerger->addCoverageFromFile($coverageFile);
Expand Down

0 comments on commit be407ac

Please sign in to comment.