Is there any way to get the final coverage report directly?

34 views
Skip to first unread message

sunyi...@gmail.com

unread,
Sep 18, 2015, 1:49:10 PM9/18/15
to JaCoCo and EclEmma Users
Currently I am use JaCoCo for functional test coverage.

I add javaagent into the JVM in order to do on-the-fly instrumentation and the output is tcpserver. I dump the exec file and then download all source code to do a compile and then download jacoco again So I can start to generate the final coverage report.

But all exec file, classes file and jacocoagent are already in Application Server. Instead of only dump exec from server and do the same, is there any way I can get the final coverage report directly from the application server?

Why do we need that exec dump file? Why don't we get the report directly?

Thanks,
Vincent

Evgeny Mandrikov

unread,
Sep 19, 2015, 12:41:24 PM9/19/15
to JaCoCo and EclEmma Users, sunyi...@gmail.com
Hi,

No, agent not able to generate report, because most common scenario is to include code of source files into report, and agent inside of running application has no access to them.
If you're not interested in source code inside reports, then you can utilize JaCoCo APIs and generate report directly on server.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages