added coverage-text argument "showOnlySummary" #711

Merged
merged 1 commit into from Nov 10, 2012

Conversation

Projects
None yet
2 participants
Contributor

jakoch commented Nov 8, 2012

This adds a new attribute "showOnlySummary" for usage in phpunit.xml, like so
<log type="coverage-text" target="php://stdout" showOnlySummary="true" />

If true, only the 3-line summary is displayed and the detailed report is skipped.
If false (default), the full report is displayed.

This is inspired by http://ocramius.github.com/blog/automated-code-coverage-check-for-github-pull-requests-with-travis/

Maybe someone else finds the time to add colors to the summary indicating whether the coverage is at the accepted percentage (green) or below (red).

This is related to sebastianbergmann/php-code-coverage#135

@jakoch jakoch referenced this pull request in sebastianbergmann/php-code-coverage Nov 8, 2012

Merged

handle coverage-text argument "showOnlySummary" #135

edorian added a commit that referenced this pull request Nov 10, 2012

edorian added a commit that referenced this pull request Nov 10, 2012

@edorian edorian merged commit 1cf63a9 into sebastianbergmann:master Nov 10, 2012

@edorian edorian referenced this pull request in sebastianbergmann/phpunit-documentation Nov 10, 2012

Closed

Tracking: Features to document for 3.8 #75

Contributor

edorian commented Nov 10, 2012

Thank you for your contribution!

@jakoch jakoch referenced this pull request in sebastianbergmann/phpunit-documentation Jul 29, 2013

Merged

documentation for coverage-text argument "showOnlySummary" #118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment