Thanks you.
On Wednesday, September 4, 2024 at 12:51:41 AM UTC+5:30 Marc R. Hoffmann wrote: > There is. Please see documentation: > > Maven: https://www.jacoco.org/jacoco/trunk/doc/check-mojo.html > Ant: https://www.jacoco.org/jacoco/trunk/doc/ant.html#report > > > On 3. Sep 2024, at 08:52, Sameer Kumar <sameer...@gmail.com> wrote: > > Thanks for the info. > Just a small question, is there a way to put exclusions in the check goal? > at any level(entire project or even at module level) > > > On Tuesday, September 3, 2024 at 1:15:09 AM UTC+5:30 Marc R. Hoffmann > wrote: > >> What should be shown in the report needs to be configured for the reports. >> >> JaCoCo does not have a Maven check goal for aggregated reports. This is >> only possible in Ant. If you have complex requirements I recommend >> embedding a Ant task in your Maven build. With the Ant report task you can >> create arbitrary structures and filters and also embed checks directly in >> the report. >> >> See: https://www.jacoco.org/jacoco/trunk/doc/ant.html >> >> On 2. Sep 2024, at 20:16, Sameer Kumar <sameer...@gmail.com> wrote: >> >> 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 <sameer...@gmail.com> 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 jacoco+un...@googlegroups.com. >>> 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 jacoco+un...@googlegroups.com. >> >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jacoco/06a9e584-b24d-48b8-9940-e3d9f25e031bn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jacoco/06a9e584-b24d-48b8-9940-e3d9f25e031bn%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 jacoco+un...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/e15314b0-2149-481f-bcb2-3882e3d62022n%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/e15314b0-2149-481f-bcb2-3882e3d62022n%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 jacoco+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/c9ad2806-498e-4d48-9873-8967813d49b0n%40googlegroups.com.