diff --git a/build.gradle b/build.gradle index 1358d12262a4f512fee633214706fe9a254c804b..aa87de656f0720f434ee2ea132897411b1c2dbf9 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')