Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-8509

Container Tests are executed with -DskipITs

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 3.0.5.Final
    • None
    • testcontainers
    • None
    • Low

      In the README.md, it's stated that you can run tests without Docker by using:

      $ mvn clean verify -DskipITs 

      However, it appears that test containers are still being launched, causing the build to fail in environments without Docker installed.

      Bug report

      Debezium codebase: current (main)

      mvn version: Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256)

      jdk: OpenJDK Runtime Environment Corretto-21.0.4.7.1 (build 21.0.4+7-LTS)

      docker: version 23.0.2, build 569dd73db1

      colima: 0.7.6

      What behavior do you expect?

      the expected behaviour is that when we run a maven verify with skipITs property, container test are not executed

      What behavior do you see?

      The actual behaviour is that container tests are executed even if we use the skipITs property

      How to reproduce the issue using our tutorial deployment?

      use mvn in the main branch with the following command:

      $ mvn clean verify -DskipITs  

              Unassigned Unassigned
              giovanni.panice@gmail.com giovanni panice
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: