Removes pest from stack traces

This commit is contained in:
luke
2021-07-30 16:34:30 +01:00
parent 46337b8085
commit c2b86c3ab3

View File

@ -333,6 +333,8 @@ final class TeamCity extends DefaultResultPrinter
public function addWarning(Test $test, Warning $e, float $time): void
{
$this->lastTestFailed = true;
$this->removePestFromStackTrace($e);
$this->writeWarning($test, $e);
}
@ -344,18 +346,24 @@ final class TeamCity extends DefaultResultPrinter
public function addIncompleteTest(Test $test, Throwable $t, float $time): void
{
$this->lastTestFailed = true;
$this->removePestFromStackTrace($t);
$this->writeWarning($test, $t);
}
public function addRiskyTest(Test $test, Throwable $t, float $time): void
{
$this->lastTestFailed = true;
$this->removePestFromStackTrace($t);
$this->writeWarning($test, $t);
}
public function addSkippedTest(Test $test, Throwable $t, float $time): void
{
$this->lastTestFailed = true;
$this->removePestFromStackTrace($t);
$this->writeWarning($test, $t);
$this->phpunitTeamCity->printIgnoredTest($test->getName(), $t, $time);
}