r***@gmail.com
2017-11-23 10:19:51 UTC
Hi,
I am trying to exclude some packages and classes from jacoco coverage report, yet I see them.
I was trying to exclude **/com/module/package2/MyClass* which is a class and **/com/module/package/** which is a package.
1. I put them comma separated in Jenkins plugin for Jacoco in Exclusions box, yet I am seeing them in coverage.
In console, I am seeing though: [JaCoCo plugin] exclusions: [**/com/module/package/**, **/com/module/package2/MyClass*].
2. I also tried by putting in maven configuration,
<configuration>
<reset>${Reset}</reset>
<address>${testHost}</address>
<excludes>
<!-- exclude generated code from coverage report -->
<exclude>**/com/module/package/**</exclude>
<exclude>**/com/module/package2/MyClass*</exclude>
</excludes>
</configuration>
This also did not work and also did not show the console log also: It was
[JaCoCo plugin] exclusions: []
3. Putting both together also did not work.
How to achieve this exclusion?
Jenkins v: 2.69
Jacoco: 1.0.19
With Jacoco 2.2.1, the coverage was all 0 thats why I think the infra team here downgraded to eariler version.
Regards
Raj
I am trying to exclude some packages and classes from jacoco coverage report, yet I see them.
I was trying to exclude **/com/module/package2/MyClass* which is a class and **/com/module/package/** which is a package.
1. I put them comma separated in Jenkins plugin for Jacoco in Exclusions box, yet I am seeing them in coverage.
In console, I am seeing though: [JaCoCo plugin] exclusions: [**/com/module/package/**, **/com/module/package2/MyClass*].
2. I also tried by putting in maven configuration,
<configuration>
<reset>${Reset}</reset>
<address>${testHost}</address>
<excludes>
<!-- exclude generated code from coverage report -->
<exclude>**/com/module/package/**</exclude>
<exclude>**/com/module/package2/MyClass*</exclude>
</excludes>
</configuration>
This also did not work and also did not show the console log also: It was
[JaCoCo plugin] exclusions: []
3. Putting both together also did not work.
How to achieve this exclusion?
Jenkins v: 2.69
Jacoco: 1.0.19
With Jacoco 2.2.1, the coverage was all 0 thats why I think the infra team here downgraded to eariler version.
Regards
Raj
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/82226e26-258a-4346-8a4e-8ea432ebd5eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/82226e26-258a-4346-8a4e-8ea432ebd5eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.