Skip to content
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

Add a way to ignore classes/packages from coverage analysis #31

Open
j2ro opened this issue Sep 14, 2016 · 3 comments
Open

Add a way to ignore classes/packages from coverage analysis #31

j2ro opened this issue Sep 14, 2016 · 3 comments
Assignees

Comments

@j2ro
Copy link

j2ro commented Sep 14, 2016

I can't see any way to ignore classes or packages from coverage analysis. As a result, my results are being skewed by auto-generated class files.

@ribrewguy
Copy link

I am also interested in this feature. Seems that the maven cobertura plugin handles this through:

<ignoreMethodAnnotations>
  <ignoreMethodAnnotation>javax.annotation.Generated</ignoreMethodAnnotation>
</ignoreMethodAnnotations>

@pawlakm
Copy link
Member

pawlakm commented Mar 13, 2017

Hi, did you check the ignoreMethodAnnotation and ignoreClassAnnotation parameters (version 2.0.0) ?

@pawlakm pawlakm self-assigned this Mar 13, 2017
@jakob-o
Copy link
Contributor

jakob-o commented Jun 29, 2017

Hi,

I am also looking for this feature. My problem is as follows: I want cobertura to be only included as a test dependency which prevents me from annotating my class with @CoverageIgnore and I want my demo package to be excluded. I tried various patterns with the excludeClassesRegularExpression parameter but without luck. Is there any other option, or did I just fail to configure the PlugIn properly?

Regards

Jakob

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

No branches or pull requests

4 participants