sebastianbergmann/php-code-coverage

How to use showOnlySummary in coverage-text ?

e-belair opened this issue · 2 comments

I see this option in the source code but I don't know where I can enable it.

EDIT:
I tried :

  • coverageTextShowOnlySummary in phpunit.xml
  • --coverage-text-show-only-summary in cli arg

No luck 😭

php-code-civerage 10.1.11
PHPUnit 10.5.5
PHP 8.1.27
PCOV 1.0.11

A bit late to the game but since I was wondering the same thing today I thought I'd let you know.

The arg you have to pass is --only-summary-for-coverage-text.
Source code.

I've tried it and it works, thank you !