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
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?
Moreover in the HTML report generated by above, clicking columns is not sorting, for example, by package name.