You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2024/06/08 22:57:00 UTC

[jira] [Resolved] (KAFKA-12199) Migrate connect:runtime module to JUnit 5

     [ https://issues.apache.org/jira/browse/KAFKA-12199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chia-Ping Tsai resolved KAFKA-12199.
------------------------------------
    Resolution: Duplicate

> 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` and all the conditional code that calls it.
> {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)