How to show code coverage on class level only not instruction

26 views
Skip to first unread message

yutia...@snapchat.com

unread,
Jun 6, 2017, 4:37:24 PM6/6/17
to JaCoCo and EclEmma Users
The Jacoco report in html and csv is on instruction level which make it real hard to tell the code coverage for each file(class), I just want if there is any flag or switch I can use to make it work on class level report

Evgeny Mandrikov

unread,
Jun 6, 2017, 5:13:54 PM6/6/17
to JaCoCo and EclEmma Users, yutia...@snapchat.com

On Tuesday, June 6, 2017 at 10:37:24 PM UTC+2, yutia...@snapchat.com wrote:
The Jacoco report in html and csv is on instruction level which make it real hard to tell the code coverage for each file(class), I just want if there is any flag or switch I can use to make it work on class level report

Instructions is just one of the columns of HTML and CSV reports.


CSV report actually contains list of classes - http://www.jacoco.org/jacoco/trunk/coverage/jacoco.csv

Reports are not configurable, but you can extract required information from XML report or retransform it into the report you want, or use JaCoCo APIs to generate report you want.

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