Just additional 2 cents: if my memory correct, then there were some changes in JDK 8 with introduction of lambda expressions about the way javac assigns lines to expressions.
On Thursday, October 6, 2016 at 4:23:55 PM UTC+2, Marc R. Hoffmann wrote: > > Hi Yashwanth, > > regarding your questions > > 1) Yes, this is a known limitation. As a work around for such scenarios we > offer offline istrumentation ( > http://www.eclemma.org/jacoco/trunk/doc/offline.html). > > 2) This most likely happens because you use different compilers (ECJ vs. > javac). JaCoCo relys on the debug information created by the compiler. Both > compilers assign different lines to the compiled code: For example javac > assigns the complete code of a multi-line expression to the first line of > that expression, while ECJ assigns the different parts of the expression to > the corresponding lines (so more lines in ECJ). > > Regards, > -marc > > On 06.10.16 08:56, yashwanth koundinya wrote: > > Hi Team, > > Firstly thanks for the aggregate report feature which really helped me to > generate report for the multi-module project. > > Here I am facing 2 issues as below. > > 1. The coverage is 0% for all the tests which use PowerMock. I got your > answer for the same from another post saying Jacoco doesn't work with > framwork like PowerMock. > > 2. When I run the coverage using EclEmma in Eclipse I see the total lines > count different (*per each module and also the total sum*) when compared > to the total lines count found in the html report generated after the > build. Why can this happen? > > Please let me know for additional information. > > Thanks > Yashwanth > -- > 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/73b89dc2-eaec-47ec-bc91-a6682fad641d%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/73b89dc2-eaec-47ec-bc91-a6682fad641d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > Hoffmann > -- 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/a1ecda96-e9f3-4752-882a-1bf1867c2d68%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
