Skip to content

Commit e3e6e5f

Browse files
vvcepheiJohn Roesler
authored and
John Roesler
committed
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]>
1 parent 365e34d commit e3e6e5f

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ This is for `core`, `examples` and `clients`
9292
./gradlew core:jar
9393
./gradlew core:test
9494

95+
Streams has multiple sub-projects, but you can run all the tests:
96+
97+
./gradlew :streams:testAll
98+
9599
### Listing all gradle tasks ###
96100
./gradlew tasks
97101

build.gradle

+26-5
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,10 @@ subprojects {
325325
}
326326
logTestStdout.rehydrate(delegate, owner, this)()
327327

328+
// The suites are for running sets of tests in IDEs.
329+
// Gradle will run each test class, so we exclude the suites to avoid redundantly running the tests twice.
330+
exclude '**/*Suite.class'
331+
328332
useJUnit {
329333
includeCategories 'org.apache.kafka.test.IntegrationTest'
330334
}
@@ -343,6 +347,10 @@ subprojects {
343347
exceptionFormat = testExceptionFormat
344348
}
345349
logTestStdout.rehydrate(delegate, owner, this)()
350+
351+
// The suites are for running sets of tests in IDEs.
352+
// Gradle will run each test class, so we exclude the suites to avoid redundantly running the tests twice.
353+
exclude '**/*Suite.class'
346354

347355
if (it.project.name != 'generator') {
348356
useJUnit {
@@ -1261,11 +1269,24 @@ project(':streams') {
12611269
standardOutput = new File(generatedDocsDir, "streams_config.html").newOutputStream()
12621270
}
12631271

1264-
test {
1265-
// The suites are for running sets of tests in IDEs.
1266-
// Gradle will run each test class, so we exclude the suites to avoid redundantly running the tests twice.
1267-
exclude '**/*Suite.class'
1268-
}
1272+
task testAll(
1273+
dependsOn: [
1274+
':streams:test',
1275+
':streams:test-utils:test',
1276+
':streams:streams-scala:test',
1277+
':streams:upgrade-system-tests-0100:test',
1278+
':streams:upgrade-system-tests-0101:test',
1279+
':streams:upgrade-system-tests-0102:test',
1280+
':streams:upgrade-system-tests-0110:test',
1281+
':streams:upgrade-system-tests-10:test',
1282+
':streams:upgrade-system-tests-11:test',
1283+
':streams:upgrade-system-tests-20:test',
1284+
':streams:upgrade-system-tests-21:test',
1285+
':streams:upgrade-system-tests-22:test',
1286+
':streams:upgrade-system-tests-23:test',
1287+
':streams:examples:test'
1288+
]
1289+
)
12691290
}
12701291

12711292
project(':streams:streams-scala') {

0 commit comments

Comments
 (0)