aboutsummaryrefslogtreecommitdiffstats
path: root/config/jacoco.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'config/jacoco.gradle')
-rw-r--r--config/jacoco.gradle8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/jacoco.gradle b/config/jacoco.gradle
index c603349..25ac311 100644
--- a/config/jacoco.gradle
+++ b/config/jacoco.gradle
@@ -16,9 +16,9 @@ tasks.withType(Test).whenTaskAdded {
}
// These tasks are for generating the coverage report after JUnit+robolectric tests have executed
-tasks.create(name: "jacocoTestDebugReport", type: JacocoReport, dependsOn: "testDebug") {
+tasks.create(name: "jacocoUnitTestDebugReport", type: JacocoReport, dependsOn: "testDebugUnitTest") {
group = "Reporting"
- description = "Generate Jacoco coverage reports"
+ description = "Generate Jacoco coverage reports for unit tests"
classDirectories = fileTree(
dir: "${project.buildDir}/intermediates/classes/debug/",
@@ -30,7 +30,7 @@ tasks.create(name: "jacocoTestDebugReport", type: JacocoReport, dependsOn: "test
)
sourceDirectories = files("src/main/java", "src/debug/java")
- executionData = files("${project.buildDir}/jacoco/testDebug.exec")
+ executionData = files("${project.buildDir}/jacoco/testDebugUnitTest.exec")
reports {
xml.enabled = true
@@ -38,4 +38,4 @@ tasks.create(name: "jacocoTestDebugReport", type: JacocoReport, dependsOn: "test
}
}
-coveralls.jacocoReportPath = "${project.buildDir}/reports/jacoco/jacocoTestDebugReport/jacocoTestDebugReport.xml" \ No newline at end of file
+coveralls.jacocoReportPath = "${project.buildDir}/reports/jacoco/jacocoUnitTestDebugReport/jacocoUnitTestDebugReport.xml" \ No newline at end of file