From d9d46c73f8d1f4edb449d889632e3d8c3cd2172d Mon Sep 17 00:00:00 2001 From: nuno maduro Date: Thu, 9 Apr 2026 21:36:49 +0100 Subject: [PATCH] chore: stores statically the result --- src/Plugins/Parallel/Paratest/WrapperRunner.php | 7 +++++++ 1 file changed, 7 insertions(+) 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) {