mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
More work on output
This commit is contained in:
@ -71,7 +71,7 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
/** @phpstan-ignore-next-line */
|
/** @phpstan-ignore-next-line */
|
||||||
public function startTestSuite(TestSuite $suite): void
|
public function startTestSuite(TestSuite $suite): void
|
||||||
{
|
{
|
||||||
if (!str_contains($suite->getName(), '.php')) {
|
if (str_starts_with($suite->getName(), 'P\\')) {
|
||||||
$this->writeWithColor('bg-white, fg-black, bold', ' ' . substr_replace($suite->getName(), '', 0, 2) . ' ');
|
$this->writeWithColor('bg-white, fg-black, bold', ' ' . substr_replace($suite->getName(), '', 0, 2) . ' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,6 +111,10 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
{
|
{
|
||||||
$suiteName = $suite->getName();
|
$suiteName = $suite->getName();
|
||||||
|
|
||||||
|
if (str_starts_with($suiteName, 'P\\')) {
|
||||||
|
$this->writeNewLine();
|
||||||
|
}
|
||||||
|
|
||||||
if (file_exists($suiteName) || !method_exists($suiteName, '__getFileName')) {
|
if (file_exists($suiteName) || !method_exists($suiteName, '__getFileName')) {
|
||||||
$this->printEvent(
|
$this->printEvent(
|
||||||
self::TEST_SUITE_FINISHED, [
|
self::TEST_SUITE_FINISHED, [
|
||||||
|
|||||||
Reference in New Issue
Block a user