Project = Ant Build
Unit-Test = Mockito, PowerMock, Junit
Code Coverage Enging = Jacoco
Since we jacoco and powermock are incompatible, the only workaround that is mentioned so far is to pre-instrument the classes. Doing, so I get some error message saying error while instrumenting because classes are already instrumented. If I want to get rid of this error message how do I configure it.
Online documentation does not have good example.
This is what is writted on online document and is not clear.
It is possible to also use offline-instrumented classes with the JaCoCo Java agent. In this case the configuration is taken from the agent options. The agent must be configured in a way that pre-instrumented classes are excluded, e.g. with "excludes=*". Otherwise it will result in error messages on the console if the agent instruments such classes again.
It would be really nice if someone could provide the configuration example on how to do this.
Also if possible it would be great to have similar example for maven project as well.
excludes=*". " But on the example that you have provided I do not see that being configured anywhereYea that's what I was guessing too. And thank you for your response.