diff --git a/src/Plugins/Parallel/Paratest/WrapperRunner.php b/src/Plugins/Parallel/Paratest/WrapperRunner.php index 46c1f994..b0dc5232 100644 --- a/src/Plugins/Parallel/Paratest/WrapperRunner.php +++ b/src/Plugins/Parallel/Paratest/WrapperRunner.php @@ -363,6 +363,15 @@ private function generateCodeCoverageReports(): void $this->codeCoverageFilterRegistry, false, ); + if (! $coverageManager->isActive()) { + $this->output->writeln([ + '', + ' WARN No code coverage driver is available.', + '', + ]); + + return; + } $coverageMerger = new CoverageMerger($coverageManager->codeCoverage()); foreach ($this->coverageFiles as $coverageFile) { $coverageMerger->addCoverageFromFile($coverageFile);