Skip to content

Commit d753118

Browse files
committed
build(jacoco): print clickable HTML report link to console
1 parent 00d2744 commit d753118

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ jacocoTestReport {
7272
html.required = true // For human-readable reports
7373
csv.required = false
7474
}
75+
76+
doLast {
77+
// We extract the file path into a variable
78+
def reportFile = reports.html.entryPoint
79+
80+
println "\n========================================================="
81+
// Wrap the path in quotes to handle the space in "BookAPI 2" better
82+
println "JaCoCo Report: file://${reportFile}"
83+
println "=========================================================\n"
84+
}
7585
}
7686

7787
// ENFORCE 100% coverage with branch coverage

0 commit comments

Comments
 (0)