read
  1. Just need to copy the next file on your app/ or the module that you want to have the coverage:
  1. Apply the plugin:
apply from: "jacoco.gradle"
  1. Run the tests you want (check reporting group on gradle tasks for available ones), in my case I have release buildType and mocked so I have:
$ ./gradlew testMockedReleaseUnitTestCoverage
  1. Then find the results on build/reports/jacoco/

Thanks to

Again thanks to Quality matters project for that dedication.

Blog Logo

Daniel Gomez Rico


Published

Image

MakinGIANTS

The findings and tips records of an Android-iOS-TheWholeShabang group

Back to Overview