Skip to content

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

Description

@dmamchyts

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions