Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-7339 Migrate from JUnit 4 to JUnit 5
  3. KAFKA-12199

Migrate connect:runtime module to JUnit 5

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      As part of the conversion we need to remove the following from `build.gradle` and all the conditional code that calls it.

      def shouldUseJUnit5 = !(["runtime"].contains(it.project.name)) 

      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.

      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"
           }
         }  

       

       

      Attachments

        Issue Links

          Activity

            People

              chia7712 Chia-Ping Tsai
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: