[ https://issues.apache.org/jira/browse/KAFKA-12199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ismael Juma updated KAFKA-12199: -------------------------------- Description: As part of the conversion we need to remove the following from `build.gradle`: {code:java} def shouldUseJUnit5 = !(["runtime"].contains(it.project.name)) {code} Additionally, we can adjust the following snippet to include `connect:runtime` if we decide to migrate tests incrementally. If we do the complete migration in one go, then this is not required. {code:java} if (project.name == 'streams') { useJUnitPlatform { includeTags "integration" includeTags "org.apache.kafka.test.IntegrationTest" // Both engines are needed to run JUnit 4 tests alongside JUnit 5 tests. // junit-vintage (JUnit 4) can be removed once the JUnit 4 migration is complete. includeEngines "junit-vintage", "junit-jupiter" } } {code} was: As part of the conversion we need to remove the following from `build.gradle`: {code:java} def shouldUseJUnit5 = !(["runtime"].contains(it.project.name)) {code} Additionally, we can adjust the following snippet to include `connect:runtime` if we decide to migrate tests incrementally. If we do the complete migration in one go, then this is not required. {code:java} if (project.name == 'streams') { useJUnitPlatform { includeTags "integration" includeTags "org.apache.kafka.test.IntegrationTest" // Both engines are needed to run JUnit 4 tests alongside JUnit 5 tests. // junit-vintage (JUnit 4) can be removed once the JUnit 4 migration is complete. includeEngines "junit-vintage", "junit-jupiter" } } {code} > Migrate connect:runtime module to JUnit 5 > ----------------------------------------- > > Key: KAFKA-12199 > URL: https://issues.apache.org/jira/browse/KAFKA-12199 > Project: Kafka > Issue Type: Sub-task > Reporter: Chia-Ping Tsai > Assignee: Chia-Ping Tsai > Priority: Major > > As part of the conversion we need to remove the following from `build.gradle`: > {code:java} > def shouldUseJUnit5 = !(["runtime"].contains(it.project.name)) {code} > Additionally, we can adjust the following snippet to include > `connect:runtime` if we decide to migrate tests incrementally. If we do the > complete migration in one go, then this is not required. > {code:java} > if (project.name == 'streams') { > useJUnitPlatform { > includeTags "integration" > includeTags "org.apache.kafka.test.IntegrationTest" > // Both engines are needed to run JUnit 4 tests alongside JUnit 5 tests. > // junit-vintage (JUnit 4) can be removed once the JUnit 4 migration > is complete. > includeEngines "junit-vintage", "junit-jupiter" > } > } {code} > > -- This message was sent by Atlassian Jira (v8.20.10#820010)