Skip to content

Conversation

@rigoford
Copy link
Contributor

An attempt to include ignored statements in the output. Not sure whether this is the best / correct way to approach this. Also can't see how to include statements that are in a whole class (or package) have been excluded, any suggestions?

Statements surrounded by $COVERAGE-OFF$ / $COVERAGE-ON$ tags are now included in the scoverage-data/scoverage.coverage.xml and scoverage.xml files however an "ignored" attribute has been added to the Statement object to indicate that the statement is contained within the above tags.
This count only includes statements excluded using the $COVERAGE-OFF$ tag, not those excluded using the sbt "coverageExcludedPackages" or maven "excludedPackages", etc. flags.
@sksamuel
Copy link
Member

Thanks for the PR. It looks good.

There's a couple of test failures, if you can fix up I can merge.

@rigoford
Copy link
Contributor Author

Just noticed the failures, they are fixed now.

sksamuel added a commit that referenced this pull request Apr 24, 2015
@sksamuel sksamuel merged commit b834a17 into scoverage:master Apr 24, 2015
@sksamuel
Copy link
Member

Thanks!

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

Labels

None yet

2 participants