mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Removes pest from stack traces
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user