Jacoco configuration in bash

21 views
Skip to first unread message

nots...@gmail.com

unread,
Jun 14, 2017, 2:58:55 AM6/14/17
to JaCoCo and EclEmma Users
Hi ,

We were using cobertura for code coverage but because of some issues we are planning to move to jacoco.
We have used cobertura jar in bash file and provided the application jar which needs to be instrumented and was executing that bash file while starting up application .

<JAVA> -cp "<cobertura-jar>" -Dnet.sourceforge.cobertura.datafile="<cobertura-data-file>" net.sourceforge.cobertura.instrument.InstrumentMain <app-jar>

I wanted to know can we do something similar with Jacoco.
I haven't found any info till now .Please let me know if we can do something like this

Evgeny Mandrikov

unread,
Jun 14, 2017, 5:07:55 AM6/14/17
to JaCoCo and EclEmma Users
Hi,

The standard way to collect code coverage with JaCoCo - is to execute application with JaCoCo agent, see documentation at http://www.jacoco.org/jacoco/trunk/doc/agent.html
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages