vanniktech/gradle-android-junit-jacoco-plugin

Support different flavors / build config for multiple modules with one gradle task

Closed this issue · 1 comments

Hey, like your description said:

When having debug & release build types and red & blue flavors the following tasks would be created: jacocoTestReportRedDebug, jacocoTestReportBlueDebug, jacocoTestReportRedRelease and jacocoTestReportBlueRelease.

This introduces the problem, that your build scripts need multiple gradle tasks to generate every report of the project. For example:

./gradlew jacocoTestReportBlueDebug
./gradlew jacocoTestReportRedRelease

It would be awesome if it had the same behavior as the assemble gradle task. For example the following code executes assembleBlueDebug and assembleRedDebug:

./gradlew assembleDebug

This should not be a problem if you execute the check task.

Also there is jacocoTestReportMerged.

def mergedReportTask = project.task("jacocoTestReportMerged", type: JacocoReport, dependsOn: mergeTask) {