How to get total coverage (Percentage of covered lines) during running Android app?

30 views
Skip to first unread message

Venelin Valkov

unread,
Mar 17, 2017, 4:00:14 PM3/17/17
to JaCoCo and EclEmma Users
Hi all,

I am interested in getting total coverage (or percentage) during running an Android application. I already managed to generate report after manual testing as described here:

However, the whole report is not really needed (at least not always). A number from 0 to 100, describing the current coverage, will be enough.

My understanding of JaCoCo is very limited. That said, I believe that the actual process of generating the final report is comprised of 3 steps:

1. Instrument app
2. Record ExecutionData
3. Using the ExecutionData and the class files generate final report

As roughly described here:


So my question comes down to this:

Can I extract a rough estimate of the code coverage (number of executed lines and number of total lines) during the current session. If so, how?

Thanks for making JaCoCo!

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