First of all - which JaCoCo version do you use?
Second - please make sure that JaCoCo version used for generation of exec 
file is the same as used for generation of report.

On Wednesday, October 26, 2016 at 12:26:51 PM UTC+2, [email protected] 
wrote:
>
> I’m trying to test a legacy big fat EAR (app.ear) application using 
> Arquillian and TestNG. To run the test I have added the testable war file 
> (test.war) in to the existing app.ear and deployed on WildFly 10 server 
> remotely. 
>
> The next part of my requirement is to get code coverage report after the 
> tests are run. For that I’m using Jacoco and running it with Jacoco Maven 
> Plugin. 
> The app.ear gets deployed and the even the tests are running fine but when 
> it comes to generate the report the Jacoco is failing with and exception 
> “IllegalStateException: Incompatible execution data for class in Jacoco 
> ………” 
>
> The exception is coming only for the class which contains the test cases. 
> If I exclude that class using exclusion tag in Jacoco Maven Plugin the 
> exception goes away but the reports generated by Jacoco contains no data. 
> Also I’ve checked jacoco.exec and as far as I can say it contains valid 
> data. 
>
> Since I cannot share the proprietary code I’m working with, I’ve created 
> three simple projects on github to emulate the same. 
>
> Project 1 (currencycoverter - 
> https://github.com/keeshaaw/currencyconverter): This project has one 
> stateless ejb with a remote interface having three methods. 
> Project 2 (earapp - https://github.com/keeshaaw/earapp): This project 
> creates the ear file using project 1 as an ejb module. 
> Project 3 (eartest - https://github.com/keeshaaw/eartest): This project 
> test the ear generated by project 2. 
>
> To me it looks like that there is some bug in the Jacoco but I might be 
> wrong also. Please help me out.

-- 
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/091ea1b5-271d-46e8-839e-01e9cd8ec727%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to