diff --git a/modules/i3plus-core-apiservice/pom.xml b/modules/i3plus-core-apiservice/pom.xml index 98443d1..d1e4ccf 100644 --- a/modules/i3plus-core-apiservice/pom.xml +++ b/modules/i3plus-core-apiservice/pom.xml @@ -227,6 +227,41 @@ true + + + + org.apache.maven.plugins + maven-surefire-plugin + + + + + org.jacoco + jacoco-maven-plugin + + + prepare-agent + + prepare-agent + + + + report-aggregate + verify + + report-aggregate + + + + report + prepare-package + + report + + + + + src/main/java diff --git a/pom.xml b/pom.xml index 03966cb..26504c2 100644 --- a/pom.xml +++ b/pom.xml @@ -33,6 +33,7 @@ 2.19.1 2.5.3 1.9.5 + 0.8.4 true UTF-8 1.8 @@ -325,9 +326,11 @@ org.apache.maven.plugins maven-surefire-plugin ${maven-surefire-plugin.version} - - ${skipTests} - + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} org.apache.maven.plugins diff --git a/sonar-project.properties b/sonar-project.properties index 22077e8..1b8a3df 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -14,4 +14,10 @@ sonar.projectVersion=1.0-DEV-SNAPSHOT #sonar.java.binaries=target # Encoding of the source code. Default is default system encoding -sonar.sourceEncoding=UTF-8 \ No newline at end of file +sonar.sourceEncoding=UTF-8 + +sonar.java.coveragePlugin=jacoco +sonar.jacoco.reportPaths=$WORKSPACE/modules/i3plus-core-apiservice/target/jacoco.exec +sonar.junit.reportPaths=$WORKSPACE/modules/i3plus-core-apiservice/target/surefire-reports +sonar.surefire.reportsPath=$WORKSPACE/modules/i3plus-core-apiservice/target/surefire-reports +sonar.dynamicAnalysis=reuseReports \ No newline at end of file