Jacoco Code Coverage not showing | application deployed on weblogic

86 views
Skip to first unread message

ashish.bh...@gmail.com

unread,
Aug 2, 2017, 5:38:08 AM8/2/17
to JaCoCo and EclEmma Users
Hi,

I am trying to generate code coverage for my application that is deployed on Weblogic server.

*There are many project deployed as library but I need coverage for selected project.

Problem : jacoco code coverage is not getting generated as ,eclipse eclema plugin not showing any coverage for application of selected project.

Step to reproduce :

set Weblogic server argument (as mention below)and start weblogic server

--------------------------------------------------------------------------
-javaagent:/tmp/ashishb/jacocoJar/jacocoagent.jar=destfile=/tmp/ashishb/jacocoexec/jacoco.exec,output=tcpserver,address=omg616023.in.oracle.com,port=6300,classdumpdir=/tmp/ashishb/classdump,includes=com.XX.ck.XX.ggK*:com.XX.ck.XX.jacoco*

-----------------------------------------------------------------------------

Problem : jacoco code coverage for com.XX.ck.XX.ggK* not getting generated.

1) Eclema plugin is not showing Coverage, though in classdump location classes are generated and call has been made to application.


Note : my application is collection of many project which is deployed as library and WAR is making calls to libs.

Note : To test whether jacoco code coverage works with weblogic, deployed one small WAR and eclema is showing the coverage ...So there must be something in my application that is why jacoco code coverage is not working ..tried hard but no luck.

Please suggest me why jacoco code coverage is not getting generated ?


Marc Hoffmann

unread,
Aug 2, 2017, 9:04:04 AM8/2/17
to jac...@googlegroups.com
How do you get the coverage report into EclEmma?

shashi...@gmail.com

unread,
Dec 18, 2017, 6:11:11 AM12/18/17
to JaCoCo and EclEmma Users

Mark
I am also facing the same issue...with similar settings, I see that we get the BI coverage which is part of weblogoic, but not the coverage for the applications deployed in weblogic
I use ant:dump command to get the execution data..I also tried the java client...Each time we do not get the appliation coverage....Are there any more settings to be done

Evgeny Mandrikov

unread,
Dec 18, 2017, 9:43:10 AM12/18/17
to JaCoCo and EclEmma Users


On Monday, December 18, 2017 at 12:11:11 PM UTC+1, shashi...@gmail.com wrote:

Mark
I am also facing the same issue...with similar settings, I see that we get the BI coverage which is part of weblogoic, but not the coverage for the applications deployed in weblogic
I use ant:dump command to get the execution data..I also tried the java client...Each time we do not get the appliation coverage....Are there any more settings to be done


Shashi, could you please do not hijack other threads? This thread is not about the same problem - topic starter here states explicitly two points: he is using EclEmma, which is not the case for you; for some small application everything is working for him.
And especially that you've got recommendations about debugging in a thread started by you - please follow them.

Evgeny Mandrikov

unread,
Dec 18, 2017, 9:54:15 AM12/18/17
to JaCoCo and EclEmma Users


On Wednesday, August 2, 2017 at 11:38:08 AM UTC+2, ashish.bh...@gmail.com wrote:

Eclema plugin is not showing Coverage, though in classdump location classes are generated and call has been made to application.



Ashish, 

Classes used during execution of application and during report generation must be exactly the same bit-to-bit - see http://www.jacoco.org/jacoco/trunk/doc/classids.html
EclEmma performs analysis and shows code coverage for the class files presented in a project. Strictly speaking there is no guarantee that they are the same as the ones you deployed in Weblogic.
For this reason I highly recommend you to perform dump and analysis outside of Eclipse, using one of the integrations such as Ant or command-line interface against exact war/jar/classes that you deployed.

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