Classes in bundle 'xxx' do no match with execution data.

700 views
Skip to first unread message

large...@gmail.com

unread,
Dec 19, 2017, 1:15:52 AM12/19/17
to JaCoCo and EclEmma Users
when I run jacocoTestReport, I see the following error during report generation.

[ant:jacocoReport] Classes in bundle 'xxx' do no match with execution data. For report generation the same class files must be used as at runtime.
[ant:jacocoReport] Execution data for class xxx does not match.
[ant:jacocoReport] Execution data for class xxx does not match.
[ant:jacocoReport] Execution data for class xxx does not match.

I saw so many webpage so I know what makes this error.

-------------------------------------------------------------------
What can cause different class ids?

Class ids are identical for the exact same class file only (byte-by-byte). There is a couple of reasons why you might get different class files. First compiling Java source files will result in different class files if you use a different tool chain:

Different compiler vendor (e.g. Eclipse vs. Oracle JDK)
Different compiler versions
Different compiler settings (e.g. debug vs. non-debug)
-------------------------------------------------------------------

However, in my development environment, the compilation environment is different.
I work in Ubuntu server. can not run Ubuntu GUI mode.
so I build source code in ubuntu. but build gradle is through android studio in windows.
and run following command in ubuntu.
./gradlew jacocoTestReport

can I receive reports properly in this environment?
how can i get report correctly?

Marc Hoffmann

unread,
Dec 19, 2017, 7:13:20 AM12/19/17
to jac...@googlegroups.com
> However, in my development environment, the compilation environment is
> different.

This is not supported by JaCoCo.

Why can't you grab the class files form your server and use these class
files for report generation?

Regards,
-marc

large...@gmail.com

unread,
Dec 20, 2017, 12:43:28 AM12/20/17
to JaCoCo and EclEmma Users
2017년 12월 19일 화요일 오후 9시 13분 20초 UTC+9, Marc R. Hoffmann 님의 말:
Thank you for comments, mark.

The way you say is that copy the file into Windows and test it,
I tested it on android studio in windows but it did not work.
Is there any way to run tests on Ubuntu console?

Regards,

Marc Hoffmann

unread,
Dec 20, 2017, 12:56:45 AM12/20/17
to jac...@googlegroups.com
Sure, gradle should perfectly work on linux.

large...@gmail.com

unread,
Dec 20, 2017, 2:36:09 AM12/20/17
to JaCoCo and EclEmma Users
2017년 12월 20일 수요일 오후 2시 56분 45초 UTC+9, Marc R. Hoffmann 님의 말:
Do you mean it is possible running jacoco test in ubuntu console without using gui mode?
Could you please tell me what to do?

Regards,
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages