From 108d181a0502b5888a42fe3537990934a8f76c0c Mon Sep 17 00:00:00 2001 From: Davy Baccaert Date: Sat, 20 Jan 2024 15:29:35 +0100 Subject: [PATCH] Improve coverage output message on failing minimum requirements --- src/Plugins/Coverage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Plugins/Coverage.php b/src/Plugins/Coverage.php index 668ff09f..41f28f5b 100644 --- a/src/Plugins/Coverage.php +++ b/src/Plugins/Coverage.php @@ -128,9 +128,9 @@ public function addOutput(int $exitCode): int if ($exitCode === 1) { $this->output->writeln(sprintf( - "\n FAIL Code coverage below expected: %s %%. Minimum: %s %%.", - number_format($coverage, 1), - number_format($this->coverageMin, 1) + "\n FAIL Code coverage below expected %s %%, currently %s %%.", + number_format($this->coverageMin, 1), + number_format($coverage, 1) )); }