Skip to content

Commit 58e3044

Browse files
Reset flag indicating test preparation failed
1 parent e78ff70 commit 58e3044

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Logging/JUnit/JunitXmlLogger.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ public function testSuiteFinished(): void
184184
public function testPreparationStarted(PreparationStarted $event): void
185185
{
186186
$this->createTestCase($event);
187+
188+
$this->preparationFailed = false;
187189
}
188190

189191
public function testPreparationFailed(): void
@@ -287,10 +289,11 @@ private function handleFinish(Info $telemetryInfo, int $numberOfAssertionsPerfor
287289
$this->testSuiteTests[$this->testSuiteLevel]++;
288290
$this->testSuiteTimes[$this->testSuiteLevel] += $time;
289291

290-
$this->currentTestCase = null;
291-
$this->time = null;
292-
$this->prepared = false;
293-
$this->unexpectedOutput = null;
292+
$this->currentTestCase = null;
293+
$this->time = null;
294+
$this->preparationFailed = false;
295+
$this->prepared = false;
296+
$this->unexpectedOutput = null;
294297
}
295298

296299
/**

0 commit comments

Comments
 (0)