Hi, On Thursday, November 23, 2017 at 11:19:51 AM UTC+1, Rajdeep Biswas wrote: > > 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*]. >
Plugin that integrates JaCoCo into Jenkins is not developed by JaCoCo Team, so you'd better seek help from developers of it ( https://github.com/jenkinsci/jacoco-plugin ) - they by definition should know more about this integration. 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. > AFAIK specification of exclusions in configuration of jacoco-maven-plugin affects only report generated by jacoco-maven-plugin ( http://www.jacoco.org/jacoco/trunk/doc/report-mojo.html ) and not taken into account by Jenkins plugin. > How to achieve this exclusion? > Exclusions are perfectly working and well tested in integrations provided by us (JaCoCo Team) - http://www.jacoco.org/jacoco/trunk/doc/integrations.html , e.g. in jacoco-maven-plugin, so as an option you can use report generated by it. In case if you wanna use other integration and it doesn't work, such as Jenkins Plugin, then please seek help from developers of this integration. Thank you for your understanding. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/79dc2600-2387-43ce-b5ca-68fc760dd9f0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
