Claus Ibsen created CAMEL-16400:
-----------------------------------
Summary: separate unit and integration tests
Key: CAMEL-16400
URL: https://issues.apache.org/jira/browse/CAMEL-16400
Project: Camel
Issue Type: Improvement
Components: build system, tests
Reporter: Claus Ibsen
Fix For: 3.10.0
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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)