diff --git a/Jenkinsfile b/Jenkinsfile
index d349aece550..1e173e29b15 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -103,7 +103,27 @@ pipeline {
stage('Test') {
steps {
- sh "mvn test"
+ // Verify start the verify phase so the coverage can be recorded and runs the tests
+ sh "mvn verify"
+ }
+ }
+
+ stage('Publish coverage') {
+ steps {
+ lockedStep(250, "graphhopper_matrix_${env.BRANCH_NAME}_publish_coverage") {
+ script {
+ // Publish Coverage HTML result
+ publishHTML(target: [
+ allowMissing: false,
+ alwaysLinkToLastBuild: false,
+ keepAll: false,
+ reportDir: 'coverage/target/site/jacoco-aggregate',
+ reportFiles: 'index.html',
+ reportName: 'Jacoco Report',
+ reportTitles: 'Jacoco Report'
+ ])
+ }
+ }
}
}
diff --git a/client-hc/pom.xml b/client-hc/pom.xml
index 4b5188ae505..f508996301b 100644
--- a/client-hc/pom.xml
+++ b/client-hc/pom.xml
@@ -52,4 +52,33 @@
test
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+
+
+ default-prepare-agent
+
+ prepare-agent
+
+
+
+
+
+ report
+ verify
+
+ report
+
+
+
+
+
+
+
diff --git a/core/pom.xml b/core/pom.xml
index 50a2b19547f..c5b6f424980 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -140,6 +140,30 @@
false
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+
+
+ default-prepare-agent
+
+ prepare-agent
+
+
+
+
+
+ report
+ verify
+
+ report
+
+
+
+
diff --git a/coverage/pom.xml b/coverage/pom.xml
new file mode 100644
index 00000000000..9bee54f9203
--- /dev/null
+++ b/coverage/pom.xml
@@ -0,0 +1,94 @@
+
+
+ 4.0.0
+
+ graphhopper-coverage
+ jar
+ GraphHopper Coverage
+
+
+ com.stuart.platform.graphhopper
+ graphhopper-parent
+ 2.0.1-SNAPSHOT
+ ../pom.xml
+
+
+
+ true
+
+
+
+
+ com.stuart.platform.graphhopper
+ graphhopper-core
+ ${project.parent.version}
+
+
+ com.stuart.platform.graphhopper
+ directions-api-client-hc
+ ${project.parent.version}
+
+
+ com.stuart.platform.graphhopper
+ graphhopper-example
+ 2.0.1-SNAPSHOT
+
+
+ com.stuart.platform.graphhopper
+ graphhopper-map-matching
+ ${project.parent.version}
+
+
+ com.stuart.platform.graphhopper
+ graphhopper-nav
+ ${project.parent.version}
+
+
+ com.stuart.platform.graphhopper
+ graphhopper-reader-gtfs
+ ${project.parent.version}
+
+
+ com.stuart.platform.graphhopper
+ graphhopper-tools
+ ${project.parent.version}
+
+
+ com.stuart.platform.graphhopper
+ graphhopper-web
+ ${project.parent.version}
+
+
+ com.stuart.platform.graphhopper
+ graphhopper-web-api
+ ${project.parent.version}
+
+
+ com.stuart.platform.graphhopper
+ graphhopper-web-bundle
+ ${project.parent.version}
+
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+
+ report-aggregate
+ verify
+
+ report-aggregate
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/example/pom.xml b/example/pom.xml
index e936648382d..23554f3abe8 100644
--- a/example/pom.xml
+++ b/example/pom.xml
@@ -32,4 +32,33 @@
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+
+
+ default-prepare-agent
+
+ prepare-agent
+
+
+
+
+
+ report
+ verify
+
+ report
+
+
+
+
+
+
+
+
diff --git a/map-matching/pom.xml b/map-matching/pom.xml
index de4cdc1c41c..0295ee3994b 100644
--- a/map-matching/pom.xml
+++ b/map-matching/pom.xml
@@ -34,6 +34,29 @@
maven-jar-plugin
3.0.2
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+
+
+ default-prepare-agent
+
+ prepare-agent
+
+
+
+
+
+ report
+ verify
+
+ report
+
+
+
+
\ No newline at end of file
diff --git a/navigation/pom.xml b/navigation/pom.xml
index a2866ff3be8..8780398df2a 100644
--- a/navigation/pom.xml
+++ b/navigation/pom.xml
@@ -31,4 +31,33 @@
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+
+
+ default-prepare-agent
+
+ prepare-agent
+
+
+
+
+
+ report
+ verify
+
+ report
+
+
+
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index 726a6a547f9..8ed9799257f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -17,7 +17,7 @@
UTF-8
1.8
-
+ 0.8.5
@@ -68,6 +68,7 @@
client-hc
navigation
example
+ coverage
diff --git a/reader-gtfs/pom.xml b/reader-gtfs/pom.xml
index 11b18a443f6..1162b30ee36 100644
--- a/reader-gtfs/pom.xml
+++ b/reader-gtfs/pom.xml
@@ -85,6 +85,29 @@
-Xmx1200m -Xms1200m -Duser.language=en
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+
+
+ default-prepare-agent
+
+ prepare-agent
+
+
+
+
+
+ report
+ verify
+
+ report
+
+
+
+
diff --git a/tools/pom.xml b/tools/pom.xml
index f07aee75b1b..b4caaf8c82e 100644
--- a/tools/pom.xml
+++ b/tools/pom.xml
@@ -84,6 +84,29 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+
+
+ default-prepare-agent
+
+ prepare-agent
+
+
+
+
+
+ report
+ verify
+
+ report
+
+
+
+
diff --git a/web-api/pom.xml b/web-api/pom.xml
index 00e060f0e46..47c0cbe4db8 100644
--- a/web-api/pom.xml
+++ b/web-api/pom.xml
@@ -33,6 +33,34 @@
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+
+
+ default-prepare-agent
+
+ prepare-agent
+
+
+
+
+
+ report
+ verify
+
+ report
+
+
+
+
+
+
+
diff --git a/web-bundle/pom.xml b/web-bundle/pom.xml
index af229f1af3c..601ba96cc3d 100644
--- a/web-bundle/pom.xml
+++ b/web-bundle/pom.xml
@@ -163,6 +163,29 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+
+
+ default-prepare-agent
+
+ prepare-agent
+
+
+
+
+
+ report
+ verify
+
+ report
+
+
+
+
diff --git a/web/pom.xml b/web/pom.xml
index 4dcfa41c60a..b1999eacb11 100644
--- a/web/pom.xml
+++ b/web/pom.xml
@@ -97,6 +97,29 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+
+
+ default-prepare-agent
+
+ prepare-agent
+
+
+
+
+
+ report
+ verify
+
+ report
+
+
+
+