Skip to content

Commit

Permalink
Improve coverage output message on failing minimum requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
davybaccaert committed Jan 20, 2024
1 parent ac5d6c1 commit 108d181
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Plugins/Coverage.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ public function addOutput(int $exitCode): int

if ($exitCode === 1) {
$this->output->writeln(sprintf(
"\n <fg=white;bg=red;options=bold> FAIL </> Code coverage below expected:<fg=red;options=bold> %s %%</>. Minimum:<fg=white;options=bold> %s %%</>.",
number_format($coverage, 1),
number_format($this->coverageMin, 1)
"\n <fg=white;bg=red;options=bold> FAIL </> Code coverage below expected <fg=white;options=bold> %s %%</>, currently <fg=red;options=bold> %s %%</>.",
number_format($this->coverageMin, 1),
number_format($coverage, 1)
));
}

Expand Down

0 comments on commit 108d181

Please sign in to comment.