Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-17179

Don't add `integration` tag when using `ClusterTestExtensions`

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.9.0
    • None
    • None

    Description

      KAFKA-17172 integrates the `@Tag("integration")` to `ClusterTest` and `ClusterTemplate`, so we don't need to declare `@Tag("integration")` on class level.

      In fact, declaring it on class level will cause issue when running unit test. For example: `DescribeConsumerGroupTest` [0] is composed of UT and IT, but it has `@Tag("integration")` on class-level. Hence, `./gradlew cleanTest tools:unitTest --tests DescribeConsumerGroupTest` will get error due to "No tests found"

      [0] https://github.com/apache/kafka/blob/90b779b7bb8b813e52ea21ce88c209e71b475ec9/tools/src/test/java/org/apache/kafka/tools/consumer/group/DescribeConsumerGroupTest.java#L73

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: