Hi Marc, Thanks. It worked once I added <append>false</append>
Thanks, Bala On Tuesday, November 23, 2021 at 3:14:18 PM UTC+5:30 Marc R. Hoffmann wrote: > Hi Bala, by > > default the JaCoCo agent appends new execution data to existing exec > files. This effectively means it get merged with the status of previous > runs. > > So either delete the exec files, run mvn clean or configure JaCoCo with > append=false. See documentation: > https://www.jacoco.org/jacoco/trunk/doc/prepare-agent-mojo.html > > Regards, > -marc > > > > On 23. Nov 2021, at 05:43, Balasubramaniyan K <balasubramaniy...@gmail.com> > wrote: > > Hi, > > I am seeing a strange behavior. > > When my code coverage has reached to 100% , I go and comment out certain > test cases expecting that the code coverage should be 91%. > > But I see the coverage is 100%. However, if I delete the jacoco.exec and > run the maven again, I get the desired result 91%. > > Any help on why I see this behavior and is there a way to fix it? Though > it is not related to any jacoco version, I use 0.8.7 > > Thanks, > Bala > > -- > 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/62b3c606-b7a9-4d12-8a1f-a2ba44dca594n%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/62b3c606-b7a9-4d12-8a1f-a2ba44dca594n%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/ebc4550b-5e80-4d59-96ae-62b676013447n%40googlegroups.com.