mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
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:
parent
603ebf7b7f
commit
d8e4e48a3b
20 changed files with 26 additions and 44 deletions
|
@ -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") }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue