From e0fa0a3d3b23ec1e64756adf5cc6bfb9bcd7c879 Mon Sep 17 00:00:00 2001 From: Hongkai Liu Date: Fri, 3 Jun 2016 17:38:49 -0400 Subject: [PATCH] it coverage --- build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle b/build.gradle index 86b966ea..af7f5ca9 100644 --- a/build.gradle +++ b/build.gradle @@ -32,6 +32,7 @@ jacocoTestReport { html.enabled = true html.destination "${buildDir}/jacocoHtml" } + executionData = files('build/jacoco/jacocoTest.exec', 'build/jacoco/test.exec') } configurations { @@ -76,6 +77,11 @@ task wrapper(type: Wrapper) { } task integrationTest(type: Test) { + jacoco { + destinationFile = file("$buildDir/jacoco/jacocoTest.exec") + classDumpFile = file("$buildDir/classes/integrationTest") + } + testClassesDir = sourceSets.integrationTest.output.classesDir classpath = sourceSets.integrationTest.runtimeClasspath outputs.upToDateWhen { false }