On Monday, April 1, 2019 at 11:43:23 AM UTC+2, pothuri hari prasad wrote:
>
> I removed the offline instrumentation and it is not generating the jacoco 
> report in the site command
> so can you please elaborate on the solution @Marc R. Hoffmann
>

You use PowerMock (which is bad on its own, but that's another story), 
which is incompatible with on-the-fly instrumentation, and I guess that's 
why you use offline instrumentation.

As Marc said the error message in the stack trace explains the problem:

Cannot process instrumented class 
> ai/apptuit/metrics/dropwizard/ApptuitReporterFactory$RegexStringMatchingStrategy.
>  
> Please supply original non-instrumented classes.


You create the report on the (still) instrumented classes. Why so? because 
execution of "mvn site" on your project executes everything up to "test" 
phase, which includes "instrument", but doesn't include 
"restore-instrumented-classes" that is bound to "package" phase by default. 
If there is no way to avoid this execution, then just bind 
"restore-instrumented-classes" to phase "test".

-- 
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/6e3c27e8-fb06-4ebc-abde-c6c7d240b2f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to