mirror of
https://github.com/pestphp/pest.git
synced 2026-04-21 22:47:27 +02:00
chore: stores statically the result
This commit is contained in:
@ -51,6 +51,11 @@ final class WrapperRunner implements RunnerInterface
|
|||||||
/**
|
/**
|
||||||
* The time to sleep between cycles.
|
* 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;
|
private const int CYCLE_SLEEP = 10000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -386,6 +391,8 @@ final class WrapperRunner implements RunnerInterface
|
|||||||
$testResultSum->numberOfIssuesIgnoredByBaseline(),
|
$testResultSum->numberOfIssuesIgnoredByBaseline(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
self::$result = $testResultSum;
|
||||||
|
|
||||||
if ($this->options->configuration->cacheResult()) {
|
if ($this->options->configuration->cacheResult()) {
|
||||||
$resultCacheSum = new DefaultResultCache($this->options->configuration->testResultCacheFile());
|
$resultCacheSum = new DefaultResultCache($this->options->configuration->testResultCacheFile());
|
||||||
foreach ($this->resultCacheFiles as $resultCacheFile) {
|
foreach ($this->resultCacheFiles as $resultCacheFile) {
|
||||||
|
|||||||
Reference in New Issue
Block a user