By exec filtering I mean that those classes should not be included in the report at all. I am currently using jacoco-report-aggregate goal to create aggregated report, I am also doing inclusions and exclusions in this goal itself.
however I also want to add a check on the aggregated report (on line coverage), but when I am putting check, it is checking on the entire classes(exclusions are not being considered while check goal). This results in drop in the line coverage percentage. Summing up, report-aggregate is creating a report with proper exclusions, but check is checking on the entire project ignoring the exclusions hence resulting in wrong checking (as per my requirement). Please help me out on this issue. On Monday, September 2, 2024 at 10:46:14 PM UTC+5:30 Marc R. Hoffmann wrote: > Hi Sameer, > > while technically this would be possible our tools (Maven, Ant, CLI) do > not offer such an option. > > Just to double check: What exactly do you want to achieve with the exec > file filtering? If you filter execution data the respective classes will be > shown as uncovered in the report. > > Regards, > -marc > > On 2. Sep 2024, at 12:48, Sameer Kumar <[email protected]> wrote: > > Hi all > > Is there any way I can merge several jacoco.exec files into a aggregated > .exec file with some inclusions and exclusions? > Or is there a way to exclude/include classes before generating the child > module jacoco.exec file. > > P.S. - I am working on a multi module project, and I need to generate an > aggregated report (unit test) with some inclusions and exclusions. Also I > need to fail the build if the coverage is below a certain percentage (this > is why I need to exclude non-required classes from the .exec file so that > to run jacoco-check correctly). > > Thank You > > -- > 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/80f7d7c6-2fe7-4e0c-a89d-aaf0a182901bn%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/80f7d7c6-2fe7-4e0c-a89d-aaf0a182901bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- 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/06a9e584-b24d-48b8-9940-e3d9f25e031bn%40googlegroups.com.
