Commit f42a7cb8 authored by jashaikh's avatar jashaikh

Added Jacoco Code Coverage For Sonar.

parent c0c6a4dc
plugins {
id 'java'
id 'org.sonarqube' version '2.8'
id 'jacoco'
}
group 'com.example'
......@@ -38,4 +39,15 @@ configurations.all {
test {
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