File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
subprojects/docs/src/snippets/testing/jacoco-quickstart Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 33
33
// end::testtask-configuration[]
34
34
35
35
// tag::testtask-dependency[]
36
+ tasks. named(" check" ). configure {
37
+ dependsOn jacocoTestReport // running check task generates the report
38
+ }
36
39
tasks. named(" jacocoTestReport" ). configure {
37
40
dependsOn test // tests are required to run before generating the report
38
41
}
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ tasks.test {
32
32
// end::testtask-configuration[]
33
33
34
34
// tag::testtask-dependency[]
35
+ tasks.named(" check" ).configure {
36
+ dependsOn(tasks[" jacocoTestReport" ]) // running check task generates the report
37
+ }
35
38
tasks.named(" jacocoTestReport" ).configure {
36
39
dependsOn(tasks.test) // tests are required to run before generating the report
37
40
}
You can’t perform that action at this time.
0 commit comments