From 60f82a21db37579b4afaec93a98703eaaee0f94f Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 2 Mar 2023 23:04:21 +0000 Subject: [PATCH] fix: buffer in paralllel combined with coverage --- src/Plugins/Parallel/Paratest/ResultPrinter.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Plugins/Parallel/Paratest/ResultPrinter.php b/src/Plugins/Parallel/Paratest/ResultPrinter.php index a0e0033e..eb23ccfe 100644 --- a/src/Plugins/Parallel/Paratest/ResultPrinter.php +++ b/src/Plugins/Parallel/Paratest/ResultPrinter.php @@ -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