jacoco-android-gradle-plugin icon indicating copy to clipboard operation
jacoco-android-gradle-plugin copied to clipboard

Jacoco test report is empty

Open dekalo-stanislav opened this issue 5 years ago • 2 comments

Use case: code coverage for android library. See: https://github.com/heershingenmosiken/android-assertions repository, branch jacoco-android gradle module android-assertions.

Tests runs well. There are test report. Jacoco runs well, but inside it shows that coverage is empty !

See report: https://codecov.io/gh/heershingenmosiken/android-assertions/branch/jacoco-android See tests passed: https://travis-ci.com/heershingenmosiken/android-assertions/builds/96632553

Actual result: Jacoco report with no coverage inside. Expected result: Jacoco report with code coverage inside.

Hot to test:

  1. Checkout https://github.com/heershingenmosiken/android-assertions/tree/jacoco-android (branch is important)
  2. ./gradlew :libAndroidAssertions:jacocoTestReport
  3. Check test report and jacoco report.

dekalo-stanislav avatar Jan 08 '19 16:01 dekalo-stanislav

I assume something has broken with latest version of something. Would be helpful if you update sample for app and library with latest tools. (now it is 3 years old)

dekalo-stanislav avatar Jan 08 '19 16:01 dekalo-stanislav

@dekalo-stanislav could you try again with 0.1.4 and according to Usage

arturdm avatar Feb 27 '19 13:02 arturdm