Browse Source

MINOR: Use Gradle's JUnitPlatform for upgrade-system-tests modules (#9922)

Add a runtime dependency on the jupiter engine to avoid failures
during `./gradlew unitTest/integrationTest/test` for `upgrade-system-tests-*`.

Also remove `connect` and `examples` from the JUnit 5 blocklist since they
contains no tests.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
pull/9921/head
Ismael Juma 4 years ago committed by GitHub
parent
commit
8648643abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      build.gradle

17
build.gradle

@ -242,8 +242,7 @@ subprojects { @@ -242,8 +242,7 @@ subprojects {
}
// Remove the relevant project name once it's converted to JUnit 5
def shouldUseJUnit5 = !(["connect", "generator", "runtime", "examples", "streams-scala",
"streams"].contains(it.project.name) || it.project.name.startsWith("upgrade-system-tests-"))
def shouldUseJUnit5 = !(["generator", "runtime", "streams-scala", "streams"].contains(it.project.name))
def testLoggingEvents = ["passed", "skipped", "failed"]
def testShowStandardStreams = false
@ -1599,6 +1598,7 @@ project(':streams:upgrade-system-tests-0100') { @@ -1599,6 +1598,7 @@ project(':streams:upgrade-system-tests-0100') {
dependencies {
testCompile libs.kafkaStreams_0100
testRuntime libs.junitJupiter
}
systemTestLibs {
@ -1611,6 +1611,7 @@ project(':streams:upgrade-system-tests-0101') { @@ -1611,6 +1611,7 @@ project(':streams:upgrade-system-tests-0101') {
dependencies {
testCompile libs.kafkaStreams_0101
testRuntime libs.junitJupiter
}
systemTestLibs {
@ -1623,6 +1624,7 @@ project(':streams:upgrade-system-tests-0102') { @@ -1623,6 +1624,7 @@ project(':streams:upgrade-system-tests-0102') {
dependencies {
testCompile libs.kafkaStreams_0102
testRuntime libs.junitJupiter
}
systemTestLibs {
@ -1635,6 +1637,7 @@ project(':streams:upgrade-system-tests-0110') { @@ -1635,6 +1637,7 @@ project(':streams:upgrade-system-tests-0110') {
dependencies {
testCompile libs.kafkaStreams_0110
testRuntime libs.junitJupiter
}
systemTestLibs {
@ -1647,6 +1650,7 @@ project(':streams:upgrade-system-tests-10') { @@ -1647,6 +1650,7 @@ project(':streams:upgrade-system-tests-10') {
dependencies {
testCompile libs.kafkaStreams_10
testRuntime libs.junitJupiter
}
systemTestLibs {
@ -1659,6 +1663,7 @@ project(':streams:upgrade-system-tests-11') { @@ -1659,6 +1663,7 @@ project(':streams:upgrade-system-tests-11') {
dependencies {
testCompile libs.kafkaStreams_11
testRuntime libs.junitJupiter
}
systemTestLibs {
@ -1671,6 +1676,7 @@ project(':streams:upgrade-system-tests-20') { @@ -1671,6 +1676,7 @@ project(':streams:upgrade-system-tests-20') {
dependencies {
testCompile libs.kafkaStreams_20
testRuntime libs.junitJupiter
}
systemTestLibs {
@ -1683,6 +1689,7 @@ project(':streams:upgrade-system-tests-21') { @@ -1683,6 +1689,7 @@ project(':streams:upgrade-system-tests-21') {
dependencies {
testCompile libs.kafkaStreams_21
testRuntime libs.junitJupiter
}
systemTestLibs {
@ -1695,6 +1702,7 @@ project(':streams:upgrade-system-tests-22') { @@ -1695,6 +1702,7 @@ project(':streams:upgrade-system-tests-22') {
dependencies {
testCompile libs.kafkaStreams_22
testRuntime libs.junitJupiter
}
systemTestLibs {
@ -1707,6 +1715,7 @@ project(':streams:upgrade-system-tests-23') { @@ -1707,6 +1715,7 @@ project(':streams:upgrade-system-tests-23') {
dependencies {
testCompile libs.kafkaStreams_23
testRuntime libs.junitJupiter
}
systemTestLibs {
@ -1719,6 +1728,7 @@ project(':streams:upgrade-system-tests-24') { @@ -1719,6 +1728,7 @@ project(':streams:upgrade-system-tests-24') {
dependencies {
testCompile libs.kafkaStreams_24
testRuntime libs.junitJupiter
}
systemTestLibs {
@ -1731,6 +1741,7 @@ project(':streams:upgrade-system-tests-25') { @@ -1731,6 +1741,7 @@ project(':streams:upgrade-system-tests-25') {
dependencies {
testCompile libs.kafkaStreams_25
testRuntime libs.junitJupiter
}
systemTestLibs {
@ -1743,6 +1754,7 @@ project(':streams:upgrade-system-tests-26') { @@ -1743,6 +1754,7 @@ project(':streams:upgrade-system-tests-26') {
dependencies {
testCompile libs.kafkaStreams_26
testRuntime libs.junitJupiter
}
systemTestLibs {
@ -1755,6 +1767,7 @@ project(':streams:upgrade-system-tests-27') { @@ -1755,6 +1767,7 @@ project(':streams:upgrade-system-tests-27') {
dependencies {
testCompile libs.kafkaStreams_27
testRuntime libs.junitJupiter
}
systemTestLibs {

Loading…
Cancel
Save