mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 22:33:35 +02:00
fix
This commit is contained in:
+11
-5
@@ -1726,6 +1726,13 @@ final class Tia implements AddsOutput, HandlesArguments, HandlesOriginalArgument
|
|||||||
|
|
||||||
$touchedFiles = [];
|
$touchedFiles = [];
|
||||||
|
|
||||||
|
// Whether this run is the one that records the edges its results will be
|
||||||
|
// invalidated through. A recording run's edges are written after this
|
||||||
|
// (terminate() runs last), and a parallel one's arrive with the worker
|
||||||
|
// partials that ask for $markKnownTestFiles — either way the graph on
|
||||||
|
// disk cannot be asked yet, so the run is taken at its word.
|
||||||
|
$recordsEdges = $complete && ($markKnownTestFiles || $this->recordingActive);
|
||||||
|
|
||||||
foreach ($results as $testId => $result) {
|
foreach ($results as $testId => $result) {
|
||||||
$file = $result['file'] ?? null;
|
$file = $result['file'] ?? null;
|
||||||
|
|
||||||
@@ -1740,11 +1747,10 @@ final class Tia implements AddsOutput, HandlesArguments, HandlesOriginalArgument
|
|||||||
// A result is only ever invalidated through the edges of the test
|
// A result is only ever invalidated through the edges of the test
|
||||||
// that produced it, so one recorded for a test the graph has no
|
// that produced it, so one recorded for a test the graph has no
|
||||||
// edges for could never be invalidated again — it would be replayed
|
// edges for could never be invalidated again — it would be replayed
|
||||||
// as settled however far the code around it moved. Only a run that
|
// as settled however far the code around it moved. A run that
|
||||||
// records edges closes that gap, and marking known test files is
|
// records no edges leaves such a test exactly as unknown as it
|
||||||
// what says this run did; a complete run that recorded none leaves
|
// found it, whether or not it ran the whole suite.
|
||||||
// the test just as unknown as a partial one does.
|
if (! $recordsEdges && (! is_string($file) || ! $graph->knowsTest($file))) {
|
||||||
if ((! $complete || ! $markKnownTestFiles) && (! is_string($file) || ! $graph->knowsTest($file))) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user