Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Plugins/Parallel/Paratest/ResultPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use SebastianBergmann\Timer\Duration;
use SplFileInfo;
use Symfony\Component\Console\Formatter\OutputFormatter;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\Console\Output\OutputInterface;

use function assert;
Expand Down Expand Up @@ -83,6 +84,7 @@ public function flush(): void {}

$this->compactPrinter = CompactPrinter::default(
decorated: ! in_array('--colors=never', $_SERVER['argv'] ?? [], true),
verbosity: ConsoleOutput::VERBOSITY_VERBOSE,
);

if (! $this->options->configuration->hasLogfileTeamcity()) {
Expand Down
11 changes: 8 additions & 3 deletions src/Plugins/Parallel/Support/CompactPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,17 @@ public function __construct(
/**
* Creates a new instance of the Compact Printer.
*/
public static function default(bool $decorated = true): self
{
public static function default(
bool $decorated = true,
int $verbosity = ConsoleOutput::VERBOSITY_NORMAL,
): self {
return new self(
terminal(),
new ConsoleOutput(decorated: $decorated),
new Style(new ConsoleOutput(decorated: $decorated)),
new Style(new ConsoleOutput(
verbosity: $verbosity,
decorated: $decorated,
)),
terminal()->width() - 4,
);
}
Expand Down