issue with creating integration test jacoco report

53 views
Skip to first unread message

sune...@gmail.com

unread,
Sep 29, 2016, 7:07:47 AM9/29/16
to JaCoCo and EclEmma Users
Hi,

Currently I am using java 1.8.0_102 ,jacoco 0.7.7.201606060606 and
apache-tomcat-7.0.70 to create jacoco report for integration testing.
I am able to create .exec file but in report coverage is coming as 0% with warning like "Execution data for class does not match".

Before that I used jacoco 0.6.2.201302030002 and getting proper report but after upgrading jacoco jar version getting does not match issue.

Please let me know.


Suneetika

yashwanth koundinya

unread,
Sep 29, 2016, 2:30:58 PM9/29/16
to JaCoCo and EclEmma Users, sune...@gmail.com
Hi,

I am facing the same issue. I could generate the report of a multi-module project but integration tests coverage is coming as 0%. I am currently using spring tests with same versions of java and jacoco you have mentioned.

Yashwanth

Evgeny Mandrikov

unread,
Sep 30, 2016, 1:23:56 PM9/30/16
to JaCoCo and EclEmma Users, sune...@gmail.com
Hi,

This message is produced in case if classes used for report generation are not the same (do not match) as classes used at runtime during collection of coverage. So please make sure that you use the same class files.

Evgeny Mandrikov

unread,
Oct 4, 2016, 6:54:37 AM10/4/16
to JaCoCo and EclEmma Users, sune...@gmail.com
To be a little bit more precise - classes for report generation should be the same as classes given for instrumentation, i.e. in case of offline instrumentation - the original non-instrumented classes.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages