Skip to content

Commit

Permalink
Merge pull request #1069 from davybaccaert/improve_coverage_message_o…
Browse files Browse the repository at this point in the history
…n_failing_minimum_requirements

[2.x] Improve coverage output message on failing minimum requirements
  • Loading branch information
nunomaduro authored Jan 25, 2024
2 parents 95cd550 + 108d181 commit 0060b6f
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 0060b6f

Please sign in to comment.