On Sunday, November 4, 2018 at 4:11:03 PM UTC+1, [email protected] wrote:
>
> Hello Team,
> I have below scenario :
>
> 1. My Java service is running on server machine(say 'A')
> 2. Manual Test are run from any local machine
> 3. Before running the tests java service on server(machine A) is restarted 
> with Jacobo agent.
> 4. Once tests are complete coverage report are dumped and pulled to local.
> 5. At local I have a copy of code and coverage report is processed against 
> it.
>
> During this process some classes are shown not covered because class ids 
> for those classes are not same on server and local machine.
>
> How can I use offline instrumentation to solve this issue ?
>

Independently from the way of instrumentation (on-the-fly or offline) 
generation of HTML report from exec file requires exactly the same class 
files as were used at runtime.

Please consider following to understand why it is done like that: if some 
class was executed, but you modified sources and so have different class, 
then there is no sense to generate report because it anyway won't be 
correct.

So you need to preserve version of classes and sources that were tested and 
use them for generation of report.

-- 
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/0ca0cf6f-1c20-4286-b525-b0077ef0d3bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to