Skip to content

Ignored statements #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 24, 2015
Merged

Ignored statements #117

merged 3 commits into from
Apr 24, 2015

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants