Codeception / Codeception/Codeception

Add support *showOnlySummary* from SebastianBergmann\CodeCoverage\Report\Facade::renderText()

Open
#6,949 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
4.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

You codebase:

File: Codeception\Coverage\Subscriber\Printer
```
protected function printConsole(): void
{
if (class_exists(FacadeReport::class)) {
$writer = FacadeReport::fromObject(self::$coverage);
$this->output->write($writer->renderText(null, showColors: $this->options['colors']));
} else {
$writer = $this->createTextWriter();
$this->output->write($writer->process(self::$coverage, $this->options['colors']));
}
}
```

FacadeReport::renderText signature support 5 arguments:

- $target,
- ?Thresholds $thresholds = null,
- bool $showUncoveredFiles = false,
- bool $showOnlySummary = false,
- bool $showColors,

Your code - 2 arguments:
- $target,
- bool $showColors,

General point - remove some report text:

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.