Commit f42a7cb8 authored by jashaikh's avatar jashaikh

Added Jacoco Code Coverage For Sonar.

parent c0c6a4dc
plugins { plugins {
id 'java' id 'java'
id 'org.sonarqube' version '2.8' id 'org.sonarqube' version '2.8'
id 'jacoco'
} }
group 'com.example' group 'com.example'
...@@ -38,4 +39,15 @@ configurations.all { ...@@ -38,4 +39,15 @@ configurations.all {
test { test {
useJUnitPlatform() useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
reports {
xml.enabled true
xml.destination file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml")
html.enabled false
csv.enabled false
}
dependsOn test
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment