File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -71,20 +71,17 @@ if (System.getProperty("tests.coverage")) {
71
71
testCodeCoverageReport(JacocoCoverageReport ) {
72
72
testSuiteName = " test"
73
73
}
74
+ testCodeCoverageReportJavaRestTest(JacocoCoverageReport ) {
75
+ testSuiteName = " javaRestTest"
76
+ }
74
77
}
75
78
}
76
79
77
80
// Attach code coverage report task to Gradle check task
78
81
project. getTasks(). named(JavaBasePlugin . CHECK_TASK_NAME ). configure {
79
- dependsOn tasks. named(' testCodeCoverageReport' , JacocoReport )
80
- }
81
-
82
- // To include javaRestTest in code coverage
83
- allprojects {
84
- plugins. withId(' opensearch.java-rest-test' ) {
85
- rootProject. tasks. named(' testCodeCoverageReport' ). configure {
86
- dependsOn tasks. named(' javaRestTest' )
87
- }
88
- }
82
+ dependsOn(
83
+ tasks. named(' testCodeCoverageReport' , JacocoReport ),
84
+ tasks. named(' testCodeCoverageReportJavaRestTest' , JacocoReport )
85
+ )
89
86
}
90
87
}
You can’t perform that action at this time.
0 commit comments