mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 18:57:22 +01:00
Output improvements.
This commit is contained in:
@ -119,8 +119,6 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
{
|
{
|
||||||
if (static::isPestTestSuite($suite)) {
|
if (static::isPestTestSuite($suite)) {
|
||||||
$this->writeWithColor('fg-white, bold', ' '.substr_replace($suite->getName(), '', 0, 2).' ');
|
$this->writeWithColor('fg-white, bold', ' '.substr_replace($suite->getName(), '', 0, 2).' ');
|
||||||
} else {
|
|
||||||
$this->writeWithColor('fg-white, bold', ' ' . $suite->getName());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->flowId = (int) getmypid();
|
$this->flowId = (int) getmypid();
|
||||||
@ -196,10 +194,7 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
public function endTestSuite(TestSuite $suite): void
|
public function endTestSuite(TestSuite $suite): void
|
||||||
{
|
{
|
||||||
$suiteName = $suite->getName();
|
$suiteName = $suite->getName();
|
||||||
|
|
||||||
if (static::isPestTestSuite($suite)) {
|
|
||||||
$this->writeNewLine();
|
$this->writeNewLine();
|
||||||
}
|
|
||||||
|
|
||||||
if (file_exists($suiteName) || !method_exists($suiteName, '__getFileName')) {
|
if (file_exists($suiteName) || !method_exists($suiteName, '__getFileName')) {
|
||||||
$this->printEvent(
|
$this->printEvent(
|
||||||
@ -215,8 +210,6 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
self::TEST_SUITE_FINISHED, [
|
self::TEST_SUITE_FINISHED, [
|
||||||
self::NAME => substr($suiteName, 2),
|
self::NAME => substr($suiteName, 2),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->writeNewLine();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -268,6 +261,11 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
$this->lastTestFailed = false;
|
$this->lastTestFailed = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static function toMilliseconds(float $time): int
|
||||||
|
{
|
||||||
|
return (int) round($time * 1000);
|
||||||
|
}
|
||||||
|
|
||||||
private function writePestTestOutput(string $message, string $color, string $symbol, string $suffix = null): void
|
private function writePestTestOutput(string $message, string $color, string $symbol, string $suffix = null): void
|
||||||
{
|
{
|
||||||
$this->writeProgressWithColor($color, "$symbol ");
|
$this->writeProgressWithColor($color, "$symbol ");
|
||||||
@ -279,11 +277,6 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function toMilliseconds(float $time): int
|
|
||||||
{
|
|
||||||
return (int) round($time * 1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Test|Testable $test
|
* @param Test|Testable $test
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user