How to get Coverage for manual tests where class ids are different

28 views
Skip to first unread message

aksa...@gmail.com

unread,
Nov 4, 2018, 10:11:03 AM11/4/18
to JaCoCo and EclEmma Users
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 ?

Please help regarding this

Evgeny Mandrikov

unread,
Nov 5, 2018, 4:13:52 AM11/5/18
to JaCoCo and EclEmma Users
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.

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages