[
https://issues.apache.org/jira/browse/SUREFIRE-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16035710#comment-16035710
]
Gilberto Torrezan commented on SUREFIRE-1379:
---------------------------------------------
Sorry I think you misunderstood the problem.
I'm not asking for the plugin to fix network issues (how it would?). I'm asking
for a way to add a delay between failed executions.
The plugin manages to retry tests when those fail for any reason (with this
property:
https://maven.apache.org/surefire/maven-failsafe-plugin/integration-test-mojo.html#rerunFailingTestsCount
). It would be convenient to have an option to add a delay between attempts.
That's it. The "network problem" was just an example of how that delay would be
useful.
> When rerunning failed tests, I want to be able to set a delay between each
> attempt, so the whole test suite doesn't fail due to a connection problem to
> 3rd party services.
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SUREFIRE-1379
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1379
> Project: Maven Surefire
> Issue Type: Improvement
> Components: Maven Failsafe Plugin
> Affects Versions: 2.20
> Reporter: Gilberto Torrezan
> Assignee: Tibor Digana
>
> Some of my integration tests require access to 3rd party services that run in
> other machines, and sometimes those services stop responding due to network
> problems.
> I want to be able to set a delay between each attempt to rerun a failed
> test, instead of rerunning everything in the same second, so tests that fail
> due to connection problems can have better chances of succeed.
> Waiting 5 seconds between attempts, in my case, is way cheaper than rerunning
> everything again.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)