You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2021/04/14 12:27: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=17320960#comment-17320960 ]
Otavio Rodolfo Piske commented on CAMEL-16400:
----------------------------------------------
The following issue will become invalid once camel-pulsar is split (it probably already is, due to the migration to test-infra): https://issues.apache.org/jira/browse/CAMEL-13454
> 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)