oppia / oppia-android

A free, online & offline learning platform to make quality education accessible for all.
https://www.oppia.org
Apache License 2.0
322 stars 523 forks source link

Set up code coverage for Robolectric tests #1497

Open vinitamurthi opened 4 years ago

vinitamurthi commented 4 years ago

We would like to get code coverage reports for our robolectric tests. The code coverage tool needs to be compatible with Kotlin and java, as well as work on Gradle and Bazel. Jacoco seems to be a good pathway, some useful links:

vinitamurthi commented 4 years ago

CC @BenHenning @anandwana001 , let me know your thoughts on using Jacoco! Here's the link: https://www.jacoco.org/jacoco/trunk/index.html

BenHenning commented 3 years ago

FYI I found out that Bazel's android local tests do not support code coverage at all, and this is something we'll need to contribute directly.

MaskedCarrot commented 3 years ago

May I work on this?

peculiaruc commented 3 years ago

Thanks for showing interest to work on this task but it already assigned.