Can I use perl test script to collect code coverage using Jacoco instead of JUNIT

45 views
Skip to first unread message

smileso...@gmail.com

unread,
Apr 1, 2016, 8:25:55 AM4/1/16
to JaCoCo and EclEmma Users
Hi all,
I have written some of the perl script instead of JUNIT and wanted to experiment if it is possible to collect code coverage using Jacoco. If so how can i do it?

I have downloaded the EclEmma from Marketplace and written a small hello world program and it works fine. I wanted to try using Perl script instead of JUNIT. Is it possible to do it? If so how can I achieve this. Can I achieve through modifying TestNG.xml or something?

http://www.mkyong.com/unittest/testng-tutorial-5-suite-test/

Regards
Pradeep

smileso...@gmail.com

unread,
Apr 3, 2016, 3:00:46 PM4/3/16
to JaCoCo and EclEmma Users, smileso...@gmail.com
Seems like it is not possible as Jacoco does instrumentation on the fly,correct? I was just thinking other way just like other code coverage analysis tools.

Marc R. Hoffmann

unread,
Apr 3, 2016, 4:37:21 PM4/3/16
to jac...@googlegroups.com
Hi Pradeep,

I assume the Perls script is testing a Java program, right?

In this case please take a look at JaCoCo, the coverage tool behind
EclEmma: http://www.eclemma.org/jacoco/trunk/doc/

It has a Java agent for on-the-fly instrumentation which can simply be
added to the command line when starting a java process:
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