From 3315d73afe982fc8967c9bb535fb31f30d001124 Mon Sep 17 00:00:00 2001 From: dgelessus <dgelessus@users.noreply.github.com> Date: Thu, 16 Jan 2020 09:48:44 +0100 Subject: [PATCH] Re-enable jacoco plugin --- build.gradle | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index 1358d12..aa87de6 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'maven' -//apply plugin: 'jacoco' +apply plugin: 'jacoco' project.version = '1.1.3-SNAPSHOT' project.group = 'de.hhu.stups' @@ -52,17 +52,17 @@ dependencies { testCompile (group: 'junit', name: 'junit', version: '4.12') } -// jacoco { -// toolVersion = "0.7.1.201405082137" -// reportsDir = file("$buildDir/customJacocoReportDir") -// } +jacoco { + toolVersion = "0.7.1.201405082137" + reportsDir = file("$buildDir/customJacocoReportDir") +} // type 'gradle tla2b jacocoIntegrationTestReport' in order to run the jacoco code coverage analysis -// task jacocoIntegrationTestReport(type: JacocoReport) { -// sourceSets sourceSets.main -// //executionData files('build/jacoco/integrationTests.exec') -// executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec") -// } +task jacocoIntegrationTestReport(type: JacocoReport) { + sourceSets sourceSets.main + //executionData files('build/jacoco/integrationTests.exec') + executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec") +} test { exclude('testing') -- GitLab