diff --git a/src/Plugins/Parallel/Paratest/WrapperRunner.php b/src/Plugins/Parallel/Paratest/WrapperRunner.php index 064856bc..b853c65f 100644 --- a/src/Plugins/Parallel/Paratest/WrapperRunner.php +++ b/src/Plugins/Parallel/Paratest/WrapperRunner.php @@ -51,6 +51,11 @@ final class WrapperRunner implements RunnerInterface /** * The time to sleep between cycles. */ + /** + * The merged test result from the parallel run. + */ + public static ?TestResult $result = null; + private const int CYCLE_SLEEP = 10000; /** @@ -386,6 +391,8 @@ final class WrapperRunner implements RunnerInterface $testResultSum->numberOfIssuesIgnoredByBaseline(), ); + self::$result = $testResultSum; + if ($this->options->configuration->cacheResult()) { $resultCacheSum = new DefaultResultCache($this->options->configuration->testResultCacheFile()); foreach ($this->resultCacheFiles as $resultCacheFile) {