Skip to content

Commit cf07489

Browse files
committed
Added integrated view of test coverage. Turn retro lambda off temporarily
1 parent 87db1bd commit cf07489

File tree

7 files changed

+105
-15
lines changed

7 files changed

+105
-15
lines changed

build.gradle

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ if (JavaVersion.current().isJava8Compatible()) {
3232

3333
allprojects {
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

101133
configure(subprojects.findAll { it.name != "props-core" }) {

consume/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ archivesBaseName = "${project.projectName}-${project.name}"
33

44
dependencies {
55
compile("$group:$projectName:$fjConsumeVersion")
6+
7+
testCompile dependencyJunit
68
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
}

core/build.gradle

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
apply plugin: "jacoco"
3-
42
ext {
53
signModule = true
64
}
@@ -18,18 +16,6 @@ uploadArchives.enabled = true
1816

1917
configureAllRetroLambda()
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-
3319
task coverage(dependsOn: ["test", "jacocoTestReport"]) << {
3420

3521
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
}

0 commit comments

Comments
 (0)