fix: buffer in paralllel combined with coverage

This commit is contained in:
Nuno Maduro
2023-03-02 23:04:21 +00:00
parent f68e6cefd4
commit 60f82a21db

View File

@ -67,7 +67,12 @@ final class ResultPrinter
public function print(string $buffer): void
{
$this->output->write(OutputFormatter::escape($buffer));
$buffer = OutputFormatter::escape($buffer);
if (! str_starts_with($buffer, "\nGenerating code coverage report")
&& ! str_starts_with($buffer, 'done [')) {
$this->output->write(OutputFormatter::escape($buffer));
}
}
public function flush(): void