On Wednesday, 26 October 2016 16:40:12 UTC+5:30, Evgeny Mandrikov wrote:
> 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.
Thanks for the prompt reply. I was using 0.7.4.201502262128 version of Jacoco.
As you have suggested I've moved to the latest version which is
0.7.7.201606060606. Now I'm no longer getting the exception. The report
generated by Jacoco in ${project.basedir}/target/site/jacoco/index.html file
still has no data in it. Am I missing something here?
--
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/43c260ff-7b20-4b5d-9514-b64a2360e208%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.