How to plugin Eclemma to Tomcat application (without junit) , how to check code coverage run tomcat

870 views
Skip to first unread message

karnaka...@gmail.com

unread,
Aug 13, 2014, 1:41:12 AM8/13/14
to jac...@googlegroups.com
How to plugin Eclemma to Tomcat application (without junit) , how to check code coverage at the time of run tomcat application,

Marc Hoffmann

unread,
Aug 13, 2014, 10:45:24 AM8/13/14
to jac...@googlegroups.com
Hi,

there are two options:

1) Run Tomcat directly within Eclipse as a main program
2) Configure the JaCoCo agent for your Tomcat instance and import the
data into Eclipse

Regards,
-marc

karnakar Reddy

unread,
Aug 14, 2014, 12:55:01 AM8/14/14
to jac...@googlegroups.com
Hi  Marc,

thank you for given valuable response,
i am try 1st way( Run Tomcat directly within Eclipse as a main program) , execute success  but code coverage 0%, 
can you please given your suggestions 
see the below screen shot
Inline image 2
​​



--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/8TMd_dfJ_5Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks and Regards
            Karna

karnaka...@gmail.com

unread,
Aug 14, 2014, 1:01:51 AM8/14/14
to jac...@googlegroups.com
Hi Marc,

thank you for given valuable response,

i am try 1st way( Run Tomcat directly within Eclipse as a main program) , execute success but code coverage 0%,

Marc Hoffmann

unread,
Aug 14, 2014, 8:55:07 AM8/14/14
to jac...@googlegroups.com
Can you please select "Open Execution Data" from the coverage view's
context menu and check, whether your classes under test are listed?

Best regards,
-marc

karnaka...@gmail.com

unread,
Aug 18, 2014, 2:52:36 AM8/18/14
to jac...@googlegroups.com
I Open Execution Data, that classes are executed (i am seeing log s ).

Marc R. Hoffmann

unread,
Aug 18, 2014, 2:59:13 AM8/18/14
to jac...@googlegroups.com
In this case the classes in your Eclipse IDE a different from the
classes executed in Tomcat.

Please make sure you deploy the exact same classes from the Ecipse IDE.

Best regards,
-marc

karnaka...@gmail.com

unread,
Aug 18, 2014, 3:18:09 AM8/18/14
to jac...@googlegroups.com
Can you please explain how to config tomcat pointing to eclipse .classes.
my tomcat pointing to WEB-INF classes folder class

Marc R. Hoffmann

unread,
Aug 18, 2014, 10:28:17 AM8/18/14
to jac...@googlegroups.com
How do you create the classes in the WEB-INF/classes folder?

Cheers,
-marc
Message has been deleted
Message has been deleted

karnaka...@gmail.com

unread,
Aug 26, 2014, 2:39:50 AM8/26/14
to jac...@googlegroups.com
Hi marc,

i configured pom.xml file,
my problem is tomcat will read different .class files , code coverage report generate .class files is different.
can you please explain ,where we change setting tomcat will read eclipse target folder .class files.

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