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 2019/08/01 14:08:00 UTC

[jira] [Commented] (CAMEL-12003) FailFast mode for unit tests

    [ https://issues.apache.org/jira/browse/CAMEL-12003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16898111#comment-16898111 ] 

Claus Ibsen commented on CAMEL-12003:
-------------------------------------

It would be nice to also report a total summary of all the failed expecations, as today it fails on first error, so if you have 2+ errors you need to fix them one at a time

>  FailFast mode for unit tests
> -----------------------------
>
>                 Key: CAMEL-12003
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12003
>             Project: Camel
>          Issue Type: Wish
>          Components: camel-test
>            Reporter: Robert Half
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.0.0, 3.0.0.M5
>
>
> Is it possible to create a "fail fast" unit test for apache camel?
> I'm using MockEndpoint in camel unit tests, provide some expectations like message count. And do a call to assertIsSatisfied.
> This waits until success or timeout, so if an exchange fails, my test waits for timeout extending the duration. For most tests it's true that a failed exchange means the test will fail. It would be nice that it fails fast - after throwing the exception and not waiting for timeout. For reference please check: https://stackoverflow.com/questions/47202346/fail-fast-apache-camel-unit-test/47225454#47225454



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)