Avoid creating unused test tasks (#74644)

With the overall theme of trying to configure and add less to the build instead of just disabling it later,
we're replacing standalone-test by standalone-rest tasks avoids creating the
unused test tasks.

Standalone rest test plugin and the other rest test plugins behave a little bit different in the sense how source sets and test tasks are wired.

The standalone rest test plugin assumes that all RestTestTasks are using the same sourceSet (test). The yaml, java Rest test plugins use one dedicated sourceSet per test task.

In the long run we probably will migrate standalone-rest-test usages to one of the other plugins and deprecate standalone-rest-test
This commit is contained in:
Rene Groeschke 2021-06-30 14:11:25 +02:00 committed by GitHub
parent 603ebf7b7f
commit d8e4e48a3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 26 additions and 44 deletions

View file

@ -9,7 +9,7 @@
import org.elasticsearch.gradle.internal.test.RestIntegTestTask
apply plugin: 'elasticsearch.internal-testclusters'
apply plugin: 'elasticsearch.standalone-test'
apply plugin: 'elasticsearch.standalone-rest-test'
apply plugin: 'elasticsearch.rest-resources'
dependencies {
@ -46,6 +46,4 @@ tasks.register("integTest") {
dependsOn "mixedClusterTest"
}
tasks.named("test").configure { enabled = false }// no unit tests for multi-cluster-search, only integration tests
tasks.named("check").configure { dependsOn("integTest") }