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

Move test infrastructure out of core

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • core
    • None

    Description

      Currently, our integration test infrastructure exists in the ":core" module's test sources. This means that any integration test must exist in "core/src/test/java" or "core/src/test/scala". 

      This has two negative consequences. First, it means most of our integration tests live in "core" which is why that module's test time is by far the highest. The other related problem is that modules cannot easily define integration tests in their directory due to circularity with the core test dependency. 

      For example, ":metadata" could not add ClusterTests because that would require a dependency on "project(':core').sourceSets.test.output" – but this can't happen because ":core" depends on ":metadata".

      We should refactor our test infrastructure classes so that we can untangle these dependencies.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              davidarthur David Arthur
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: