vanniktech / gradle-android-junit-jacoco-plugin

Gradle plugin that generates JaCoCo reports from an Android Gradle Project
http://vanniktech.com
Apache License 2.0
399 stars 72 forks source link

combinedTestReport doesn't use coverage files from androidTests #167

Closed VysotskiVadim closed 4 years ago

VysotskiVadim commented 4 years ago

Currently plugin setups code coverage report files at configuration phase, see 1 at the diagram. The issue is that for Android Tests we don't know in advance names of code coverage reports files downloaded from a device, because they are available only after tests run, see 2 at the diagram. jacoco-plugin-bug

For my project I fixed the issue by moving the configuration of code coverage files location at stage 3.

vanniktech commented 4 years ago

Thanks for your contribution. Try out the 0.17.0-SNAPSHOT which should be available soon.

ardevd commented 3 years ago

Im still seeing this issue on 0.17.0-SNAPSHOT I think. Sometimes the instrumented tests are included in the combined test report, but sometimes it isnt.