Jacoco giving coverage report for all the classes!

47 views
Skip to first unread message

T CHANDRA SHEKHAR 15BEC1185

unread,
Jun 29, 2019, 2:44:01 PM6/29/19
to JaCoCo and EclEmma Users
Hello,

I am running Jacoco with ant on my code base for a particular testing code (which is specified in the build.properties file). But Jacoco is giving me coverage reports for all the classes instead of providing report for only that one particular class. I have attached both the my build.xml part of Jacoco and my build.properties for your reference.

Thanks & Regards
Shekhar
jacoco_build (2).xml
build.properties

Marc Hoffmann

unread,
Jul 1, 2019, 7:22:46 AM7/1/19
to jac...@googlegroups.com
Hi,

what shows in the report is defined by the input to the report task:

        <structure name="com.hp.ssmc.pianoui.BaseTest.RemoveSystemsTest">
            <classfiles>
                <fileset dir="ServerTests/build/manual/classes" />
            </classfiles>
        </structure>

If you want to restrict the report you may want to restrict the fileset in the structure element.

As a separate aspect I wonder why you use offline instrumentation. This is not required and not recommended. The coverage task will do on-the-fly instrumentation for you.

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/dc807632-a73b-40e6-aa7e-43f133e62194%40googlegroups.com.
<jacoco_build (2).xml><build.properties>

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