Add support *showOnlySummary* from SebastianBergmann\CodeCoverage\Report\Facade::renderText()
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start in Codeception\Coverage\Subscriber\Printer::printConsole() and compare its FacadeReport::renderText() call with the five-argument signature described in the issue. Check the resulting console coverage output against the attached example; done means the unwanted report text is removed while the requested summary output remains available.
Written by the indexing model from the issue text.
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:
- Dominant language
- PHP
- Stars
- 4.9k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Codeception/Codeception
-
Difficulty 4/5 3-5 days Newbie friendliness 68/100
Codeception/Codeception#6940 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
Codeception/Codeception#6935 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
Codeception/Codeception#6923 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Codeception/Codeception#6894 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
Codeception/Codeception#6883 ·
All issues in Codeception/Codeception
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·