Please find the below source code for report
task testJacocoReport(type: JacocoReport){
sourceDirectories = fileTree(dir: "$aps_home/src", exclude: 'test/**/*.java')
classDirectories = fileTree(dir: "$buildDir", exclude: 'test-classes/**/*.class')
executionData files("$aps_home/build/jacoco/jacoco.exec")
def reportDir = "build/jacocoReport"
reports {
xml{
enabled true
destination "$aps_home/build/jacoco.xml"
}
csv{
enabled true
destination "$aps_home/build/jacoco.csv"
}
html.destination = reportDir
}
doLast {
println "Jacoco report for client created: file://${reportDir.toURI().path}"
}
}
Please let me know where I am missing .
Regards
SS
Please help me how to handle this warning and get the source file link.
Thanks
Now I got source file link,
if src directory is wrong ,link wont work,so for source file link src directory should be correct directory.
Regards,
Suneetika