python script between servlet and java backend

19 views
Skip to first unread message

chhonke...@gmail.com

unread,
Jun 29, 2016, 5:01:13 AM6/29/16
to JaCoCo and EclEmma Users
Hi,

I'm working on a project that has a java servlets based UI(struts specifically) and the control flow is such that there is a python script which is getting called from java UI code, the python script then runs the main method of the backed java project to do stuff.

Now, when I'm doing code coverage using JaCoCo, everything before the java class(including this) invoking python script is getting covered but after the script, from the class containing main method and other classes after main, it is showing 0% code coverage.

Please help how to run coverage for that.

Sumit

Marc Hoffmann

unread,
Jul 12, 2016, 11:49:21 AM7/12/16
to jac...@googlegroups.com
Hi Sumit,

interesting architecture ;-)

You need to make sure that your python script start the JVM with a
properly configured JaCoCo agent parameter. See documentation:

http://www.eclemma.org/jacoco/trunk/doc/agent.html

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