This is an automated email from the ASF dual-hosted git repository.

vvcephei pushed a commit to branch 2.4
in repository https://gitbox.apache.org/repos/asf/kafka.git

commit e3e6e5fe82fe2135687f419d9aae8b8ccacf6add
Author: John Roesler <[email protected]>
AuthorDate: Fri Jul 24 15:30:20 2020 -0500

    MINOR: add task ':streams:testAll' (#9073)
    
    Adds a new task (`:streams:testAll`) to gradle to run all the tests for all 
Streams sub-projects.
    
    Reviewers: Boyang Chen <[email protected]>
---
 README.md    |  4 ++++
 build.gradle | 31 ++++++++++++++++++++++++++-----
 2 files changed, 30 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index b7081c4..7e1b3ee 100644
--- a/README.md
+++ b/README.md
@@ -92,6 +92,10 @@ This is for `core`, `examples` and `clients`
     ./gradlew core:jar
     ./gradlew core:test
 
+Streams has multiple sub-projects, but you can run all the tests:
+
+    ./gradlew :streams:testAll
+
 ### Listing all gradle tasks ###
     ./gradlew tasks
 
diff --git a/build.gradle b/build.gradle
index 171c20e..597121d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -325,6 +325,10 @@ subprojects {
     }
     logTestStdout.rehydrate(delegate, owner, this)()
 
+    // The suites are for running sets of tests in IDEs.
+    // Gradle will run each test class, so we exclude the suites to avoid 
redundantly running the tests twice.
+    exclude '**/*Suite.class'
+
     useJUnit {
       includeCategories 'org.apache.kafka.test.IntegrationTest'
     }
@@ -343,6 +347,10 @@ subprojects {
       exceptionFormat = testExceptionFormat
     }
     logTestStdout.rehydrate(delegate, owner, this)()
+    
+    // The suites are for running sets of tests in IDEs.
+    // Gradle will run each test class, so we exclude the suites to avoid 
redundantly running the tests twice.
+    exclude '**/*Suite.class'
 
     if (it.project.name != 'generator') {
       useJUnit {
@@ -1261,11 +1269,24 @@ project(':streams') {
     standardOutput = new File(generatedDocsDir, 
"streams_config.html").newOutputStream()
   }
 
-  test {
-    // The suites are for running sets of tests in IDEs.
-    // Gradle will run each test class, so we exclude the suites to avoid 
redundantly running the tests twice.
-    exclude '**/*Suite.class'
-  }
+  task testAll(
+    dependsOn: [
+            ':streams:test',
+            ':streams:test-utils:test',
+            ':streams:streams-scala:test',
+            ':streams:upgrade-system-tests-0100:test',
+            ':streams:upgrade-system-tests-0101:test',
+            ':streams:upgrade-system-tests-0102:test',
+            ':streams:upgrade-system-tests-0110:test',
+            ':streams:upgrade-system-tests-10:test',
+            ':streams:upgrade-system-tests-11:test',
+            ':streams:upgrade-system-tests-20:test',
+            ':streams:upgrade-system-tests-21:test',
+            ':streams:upgrade-system-tests-22:test',
+            ':streams:upgrade-system-tests-23:test',
+            ':streams:examples:test'
+    ]
+  )
 }
 
 project(':streams:streams-scala') {

Reply via email to