google / gwtmockito

Better GWT unit testing
https://google.github.io/gwtmockito
Apache License 2.0
157 stars 50 forks source link

Provide an example in the samples or documentation for doing code coverage #69

Open JonCook opened 7 years ago

JonCook commented 7 years ago

Please provide an example through documentation or sample project or in this issue of how to do code coverage using gwtmockito and specifically with GwtMockitoTestRunner. I've read the issue #65 and clearly there are some problems with jacoco and I've tried the offline instrumentation and it doesn't work. We happen to be using Ant but I don't mind how you do the example.

I don't mind the solution or framework if it is emma, cobertura or some other idea. Custom jar or command line etc..

If it is not possible then unfortunately this library doesn't have any real use or purpose as code coverage metrics are nowadays mandatory in most places.

Thanks

JonCook commented 7 years ago

Maybe the solution is to go to PowerMock who are addressing this problem. Perhaps it could be possible to use bytebuddy as well from GWTMockito?? https://github.com/powermock/powermock/wiki/Code-coverage-with-JaCoCo