You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/05/01 08:33:00 UTC
[jira] [Commented] (CAMEL-16400) separate unit and integration
tests
[ https://issues.apache.org/jira/browse/CAMEL-16400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17337760#comment-17337760 ]
Claus Ibsen commented on CAMEL-16400:
-------------------------------------
Is there more work to do here?
> 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
> Assignee: Otavio Rodolfo Piske
> Priority: Major
> 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)