Skip to content

Commit a9b0c07

Browse files
authored
Merge pull request #8 from ttomdewit/patch-3
Add only-percentage docs and example
2 parents 2d8a463 + bd5de22 commit a9b0c07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ Run the script:
2222
```bash
2323
vendor/bin/phpunit --coverage-clover clover.xml
2424
vendor/bin/coverage-check clover.xml 80
25+
vendor/bin/coverage-check clover.xml 80 only-percentage
2526
```
2627

28+
With the `only-percentage` enabled, the CLI command will only return the resulting coverage percentage.
29+
2730
It's also possible to add the coverage report generation to the phpunit.xml.dist add to following line to the xml file:
2831
```xml
2932
<logging>

0 commit comments

Comments
 (0)