-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Filter out synthetic classes during generation of report #668
Conversation
6d42429
to
1cc417a
Compare
@marchof could you please have a look? I can pull down implementation into existing |
@Godin For now I think this can be hardcoded in |
@marchof in this case could you please approve and I will do squash and merge 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank!
|
||
import org.jacoco.core.analysis.ICounter; | ||
import org.jacoco.core.test.filter.targets.EnumSwitch; | ||
import org.jacoco.core.test.validation.JavaVersion; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused import gives warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marchof unused import removed
@Test | ||
public void testCoverageResult() { | ||
if (isJDKCompiler && JAVA_VERSION.isBefore("1.6")) { | ||
assertLine("switch", ICounter.PARTLY_COVERED, 0, 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we leave a comment why this is the case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marchof added comment
<h3>New Features</h3> | ||
<ul> | ||
<li>Synthetic classes are filtered out during generation of report | ||
(GitHub <a href="https://github.com/jacoco/jacoco/issues/668">#668</a>).</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is our rule here: Do we refer to the PR or to the issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marchof I prefer to refer to actual changes, so to PR, and was following this principle here and before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Fixes #660