File tree Expand file tree Collapse file tree 7 files changed +105
-15
lines changed
java-core/src/test/java/fj Expand file tree Collapse file tree 7 files changed +105
-15
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ if (JavaVersion.current().isJava8Compatible()) {
3232
3333allprojects {
3434
35+ apply plugin : " jacoco"
36+
37+ jacoco {
38+ toolVersion = " 0.7.1.201405082137"
39+ }
40+
3541 defaultTasks " build"
3642
3743 ext {
@@ -43,7 +49,7 @@ allprojects {
4349 fjConsumeVersion = " 4.4"
4450
4551 signModule = false
46- useRetroLambda = true
52+ useRetroLambda = false
4753
4854 projectTitle = " Functional Java"
4955 projectName = " functionaljava"
@@ -70,6 +76,10 @@ allprojects {
7076 retroLambdaTarget = JavaVersion . VERSION_1_7
7177 }
7278
79+ repositories {
80+ jcenter()
81+ }
82+
7383 version = fjVersion
7484 group = " org.functionaljava"
7585
@@ -96,6 +106,28 @@ subprojects {
96106 options. compilerArgs << " -Xlint:unchecked" << " -Xlint:deprecation"
97107 }
98108 }
109+
110+ jacocoTestReport {
111+ reports {
112+ html. enabled = true
113+ xml. enabled = true
114+ csv. enabled = false
115+ // html.destination "${buildDir}/jacocoHtml"
116+ }
117+ }
118+
119+ }
120+
121+ task coverageRootReport (type : org.gradle.testing.jacoco.tasks.JacocoReport ) {
122+ dependsOn = subprojects. test
123+ sourceDirectories = files(subprojects. sourceSets. main. allSource. srcDirs)
124+ classDirectories = files(subprojects. sourceSets. main. output)
125+ executionData = files(subprojects. jacocoTestReport. executionData)
126+ reports {
127+ html. enabled = true
128+ xml. enabled = true
129+ csv. enabled = false
130+ }
99131}
100132
101133configure(subprojects. findAll { it. name != " props-core" }) {
Original file line number Diff line number Diff line change @@ -3,4 +3,6 @@ archivesBaseName = "${project.projectName}-${project.name}"
33
44dependencies {
55 compile(" $group :$projectName :$fjConsumeVersion " )
6+
7+ testCompile dependencyJunit
68}
Original file line number Diff line number Diff line change 1+ package fj ;
2+
3+ import org .junit .Ignore ;
4+ import org .junit .Test ;
5+
6+ import org .junit .Assert ;
7+
8+ /**
9+ * Created by MarkPerry on 30/08/2015.
10+ */
11+ public class EmptyTest {
12+
13+ @ Ignore @ Test
14+ public void missing () {
15+ Assert .fail ("not implemented" );
16+
17+ }
18+ }
Original file line number Diff line number Diff line change 11
2- apply plugin : " jacoco"
3-
42ext {
53 signModule = true
64}
@@ -18,18 +16,6 @@ uploadArchives.enabled = true
1816
1917configureAllRetroLambda()
2018
21- jacoco {
22- toolVersion = " 0.7.1.201405082137"
23- }
24-
25- jacocoTestReport {
26- reports {
27- xml. enabled false
28- csv. enabled false
29- html. destination " ${ buildDir} /jacocoHtml"
30- }
31- }
32-
3319task coverage (dependsOn : [" test" , " jacocoTestReport" ]) << {
3420
3521}
Original file line number Diff line number Diff line change 1+ package fj ;
2+
3+ import org .junit .Ignore ;
4+ import org .junit .Test ;
5+
6+ import org .junit .Assert ;
7+
8+ /**
9+ * Created by MarkPerry on 30/08/2015.
10+ */
11+ public class EmptyTest {
12+
13+ @ Ignore @ Test
14+ public void missing () {
15+ Assert .fail ("not implemented" );
16+
17+ }
18+ }
Original file line number Diff line number Diff line change 1+ package fj ;
2+
3+ import org .junit .Ignore ;
4+ import org .junit .Test ;
5+ import org .junit .Assert ;
6+
7+ /**
8+ * Created by MarkPerry on 30/08/2015.
9+ */
10+ public class EmptyTest {
11+
12+ @ Ignore @ Test
13+ public void missing () {
14+ Assert .fail ("not implemented" );
15+
16+ }
17+ }
Original file line number Diff line number Diff line change 1+ package fj ;
2+
3+ import org .junit .Assert ;
4+ import org .junit .Ignore ;
5+ import org .junit .Test ;
6+
7+ /**
8+ * Created by MarkPerry on 30/08/2015.
9+ */
10+ public class EmptyTest {
11+
12+ @ Ignore @ Test
13+ public void missing () {
14+ Assert .fail ("not implemented" );
15+
16+ }
17+ }
You can’t perform that action at this time.
0 commit comments