diff --git a/build.gradle b/build.gradle index 343144d0d96de84a3df93c04366faab700b51719..9fbd97caddfec5e14f497e9ef95d1610e73e9732 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.4-SNAPSHOT' project.group = 'de.hhu.stups' @@ -38,7 +38,6 @@ if (project.version.endsWith("-SNAPSHOT")) { else { parser_version = '2.9.27' } -// current stable version is 2.9.27, 2.9.28-SNAPSHOT def tlatools_version = '1.0.2' @@ -53,17 +52,17 @@ dependencies { testCompile (group: 'junit', name: 'junit', version: '4.12') } -// jacoco { -// toolVersion = "0.8.5" -// reportsDir = file("$buildDir/customJacocoReportDir") -// } +jacoco { + toolVersion = "0.8.5" + 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')