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

Gilberto Torrezan commented on SUREFIRE-1379:
---------------------------------------------

Let me elaborate the problem to show why do I need a delay between rerun 
attempts (again, and to make it clear: it's only between rerun attempts, not 
between regular executions):

Most of my 1300+ tests depend on a remote connection to a browser farm, to run 
tests in different browsers. Sometimes there are connections failures (due to 
network problems or due to problems on the service side - but either way, 
problems that are not related to tests), and those failures make the tests fail.

Since running that amount of tests take a lot of time, when they fail because a 
connection failure, all the test results are lost. Currently, when that 
happens, it's possible to rerun just the failed tests by using the 
rerunFailingTestsCount - but most of the times the rerun attempts are done in 
the same second of the failure, which doesn't help in case of remote failures.

In my case, waiting to retry, let's say, 5 seconds between attempts, is faster 
than running all the tests again.

{quote}
Why this is the first feature request after a year when rerun was introduced.
{quote}

In my case, this is because I just started using last week to control reruns, 
not when it was first released.

> 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)

Reply via email to