Jacoco coverage in xml format

1,456 views
Skip to first unread message

Kiran Tonse

unread,
Feb 28, 2015, 2:56:04 PM2/28/15
to jac...@googlegroups.com
Hello Everyone,

I want to get the jacoco code coverage report in an xml format.
Ex:

My app:

    package pac1 
    Class Class1{
    public void method1(){}
    }

My test:

    @Test
    public void test1(){ 
    Class1 class1=new Class1();
    class1.method1();
    }

I want to get the coverage report like this:

    <package=pac1>
    <class=class1>
    <method=mehtod1>
    </package>

Please let me know if there is a way of getting this.

My setup:
The app code is deployed on one box and it is instrumented. The test suite runs on a CI job.

Thanks
Kiran

Marc R. Hoffmann

unread,
Mar 1, 2015, 3:02:40 PM3/1/15
to jac...@googlegroups.com
Hi,

JaCoCo supports reports in XML format. You can create XML reports both with Ant and Maven.

Please see documentation for the XML schema and report creation: http://www.eclemma.org/jacoco/trunk/doc/

Regards,
-marc
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CAPnnJhpvV_%2Bx60PsvHJAT3qAbVUgWt_%2BSwX3-4Sy1_FvAmtk6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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