apache / apache/maven-surefire

[SUREFIRE-1379] 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.

Open
#2,308 7 comments 0 reactions 0 assignees View on GitHub
enhancement priority:major
Dominant language
Java
Stars
461
Forks
588
Avg merge
1d 8h
Merged PRs (30d)
19

Description

**[Gilberto Torrezan](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=gilberto.torrezan)** opened **[SUREFIRE-1379](https://issues.apache.org/jira/browse/SUREFIRE-1379?redirect=false)** and commented

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.

---

**Affects:** 2.20

Contributor guide

Open the contributing guide

Research direction

Start with the Maven Surefire issue entry and trace the existing failed-test rerun configuration and retry handling. Determine where a per-attempt delay would be configured and verify that integration tests wait between retries without changing other rerun behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.