Did anyone had solution for this. i want some of the generated sources need to be excluded from the report instead of showing as 0% On Saturday, May 4, 2013 at 6:33:40 AM UTC-7, John D. Ament wrote: > Yes, this is the configuration I ended up adding (it's not clear if this > parameter is supposed to be an array style like other excludes in maven, or a > comma separated list): > > > > <plugin> > <groupId>org.jacoco</groupId> > <artifactId>jacoco-maven-plugin</artifactId> > <version>0.6.2.201302030002</version> > <configuration> > <excludes> > <exclude>*_.class</exclude> > </excludes> > </configuration> > </plugin> > > > However in the report it still showed. I would prefer that the class not > show in the report. > > > John > On Wednesday, May 1, 2013 10:53:51 AM UTC-4, Marc R. Hoffmann wrote:> So, I > tried that. IT did help but the classes still show as 0%. > > > > Where does it show 0%? In the generated JaCoCo report? > > > > Best regards, > > -marc > > > > > > On 2013-05-01 16:07, John D. Ament wrote: > > > So, I tried that. IT did help but the classes still show as 0%. I > > > don't want to show them at all. > > > > > > On Tuesday, April 30, 2013 8:36:46 AM UTC-4, Marc R. Hoffmann wrote: > > > > > >> Hi, > > >> > > >> there are some known inconsistencies regarding includes/excludes: > > >> > > >> https://github.com/jacoco/jacoco/issues/34 [1] > > >> > > >> Basically for the Maven report goal the excludes refer to class file > > >> > > >> names. So probably the pattern should be > > >> > > >> <excludes>*_.class</excludes> > > >> > > >> Best regards, > > >> -marc > > >> > > >> On 2013-04-30 13:31, John D. Ament wrote: > > >>> Hi & thanks for the response. > > >>> > > >>> I'm using Maven. I have this section: > > >>> > > >>> <reporting> > > >>> <excludeDefaults>false</excludeDefaults> > > >>> <plugins> > > >>> <plugin> > > >>> <groupId>org.jacoco</groupId> > > >>> <artifactId>jacoco-maven-plugin</artifactId> > > >>> <version>0.6.2.201302030002</version> > > >>> </plugin> > > >>> > > >>> So what I did originally was: > > >>> > > >>> <plugin> > > >>> <groupId>org.jacoco</groupId> > > >>> <artifactId>jacoco-maven-plugin</artifactId> > > >>> <version>0.6.2.201302030002</version> > > >>> <configuration> > > >>> <excludes>*_</excludes> > > >>> </configuration> > > >>> </plugin> > > >>> > > >>> However they were still included. I assumed this would ignore > > >>> anything > > >>> ending with a _. > > >>> > > >>> On Monday, April 29, 2013 3:02:23 AM UTC-4, Marc R. Hoffmann > > >> wrote: > > >>> > > >>>> Hi, > > >>>> > > >>>> these classes must be excluded from report generation, here you > > >> have > > >>>> two > > >>>> options: If the generated classes follow a common naming pattern > > >> you > > >>>> can > > >>>> list the in the excludes attributes of the respective build tool > > >>>> you're > > >>>> using. A cleaner way would be place the generated classes into a > > >>>> different location and only supply the location of your app > > >> classes > > >>>> to > > >>>> the reporting tool. > > >>>> > > >>>> What build tool are you using to generate the report? > > >>>> > > >>>> Best regards, > > >>>> -marc > > >>>> > > >>>> On 25.04.13 15:52, John D. Ament wrote: > > >>>>> In my code, I have some classes that are coded and others that > > >> are > > >>>> code > > >>>>> generated via JPA's metamodel gen. When this gen runs, it places > > >> > > >>>> the > > >>>>> generated classes in the same package. I want to exclude these > > >>>> classes > > >>>>> from code coverage reporting. What is the proper way to ensure > > >>>> that > > >>>>> they don't show in the reports? > > >>>>> > > >>>>> -- > > >>>>> 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]. > > >>>>> For more options, visit https://groups.google.com/groups/opt_out > > >> [2] > > >>>> [1]. > > >>>>> > > >>>>> > > >>> > > >>> -- > > >>> 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]. > > >>> For more options, visit https://groups.google.com/groups/opt_out > > >> [3] > > >>> [2]. > > >>> > > >>> > > >>> > > >>> Links: > > >>> ------ > > >>> [1] https://groups.google.com/groups/opt_out [4] > > >>> [2] https://groups.google.com/groups/opt_out [5] > > > > > > -- > > > 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]. > > > For more options, visit https://groups.google.com/groups/opt_out > > > [6]. > > > > > > > > > > > > Links: > > > ------ > > > [1] https://github.com/jacoco/jacoco/issues/34 > > > [2] https://groups.google.com/groups/opt_out > > > [3] https://groups.google.com/groups/opt_out > > > [4] https://groups.google.com/groups/opt_out > > > [5] https://groups.google.com/groups/opt_out > > > [6] https://groups.google.com/groups/opt_out
-- 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/57d7884c-8a66-4ab2-a92d-e3409d699cba%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
