diff --git a/src/Runners/PHPUnit/Runner.php b/src/Runners/PHPUnit/Runner.php index 720e0947..fa6bfb7b 100644 --- a/src/Runners/PHPUnit/Runner.php +++ b/src/Runners/PHPUnit/Runner.php @@ -119,7 +119,7 @@ private function testIsStillRunning(ExecutableTest $test): bool if (!$errorOutput) { $errorOutput = $test->getStdout(); } - throw new \Exception($errorOutput); + throw new \Exception(sprintf("Fatal error in %s:\n%s", $test->getPath(), $errorOutput)); } $this->printer->printFeedback($test); if ($this->hasCoverage()) {