Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16400

separate unit and integration tests

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.10.0
    • Component/s: build system, tests
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      We should seperate our tests into unit and integration tests.

      The integration tests are dominatingly the tests that uses test containers.

      This can be done by

      • maven surefire plugin phase test (unit test) and verify (integration)
      • naming test classes as *Test.java (unit test) and *IT.java (integration)

      The naming is important as its the surefire plugin that is configured the run tests in those two phases where it filters by name - source code are in the same src/test/java folder.

      So we can start by trying this on one camel component first

      • rename the tests
      • make surefire plugin run test vs verify phase accordingly (may need to configure in some parent/root pom)

      And then review and then repeat for the other components.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                orpiske Otavio Rodolfo Piske
                Reporter:
                davsclaus Claus Ibsen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: