mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Revert "Merge pull request #919 from WendellAdriel/feature/coverage-errors-only-flag-2"
This reverts commit1e2ca40c5b, reversing changes made to4522cb5dcb.
This commit is contained in:
@ -74,7 +74,7 @@ final class Coverage
|
||||
* Reports the code coverage report to the
|
||||
* console and returns the result in float.
|
||||
*/
|
||||
public static function report(OutputInterface $output, float $coverageMin, bool $showErrorsOnly): float
|
||||
public static function report(OutputInterface $output): float
|
||||
{
|
||||
if (! file_exists($reportPath = self::getPath())) {
|
||||
if (self::usingXdebug()) {
|
||||
@ -126,10 +126,6 @@ final class Coverage
|
||||
|
||||
$truncateAt = max(1, terminal()->width() - 12);
|
||||
|
||||
if ($showErrorsOnly && (float) $percentage >= $coverageMin) {
|
||||
continue;
|
||||
}
|
||||
|
||||
renderUsing($output);
|
||||
render(<<<HTML
|
||||
<div class="flex mx-2">
|
||||
|
||||
Reference in New Issue
Block a user