Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

TestNG retries are marked as Skipped and the test itself is not marked as Flaky Test

Aperta
#452 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
testing

Direzione di ricerca

Inizia riproducendo il comportamento con il RetryAnalyzerImpl fornito e il test TestNG usando allure-testng 2.13.3, quindi traccia come vengono classificati i tentativi nella integrazione TestNG e nell’output del report. Il lavoro è completo quando i tentativi falliti non vengono riportati come ignorati e il test mostra l’indicatore Flaky Test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I'm submitting a ...
  • bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.
What is the current behavior?

Tests that failed and then success after re-run using TestNG retryAnalyzer marked as skipped and not showing the Flaky Test (bomb) icon.
image
image

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

The retry impl class

public class RetryAnalyzerImpl implements IRetryAnalyzer {
	private int maxRetryCount = 3;
	private int retryCount = 0;

	public boolean retry(ITestResult result) {
		if (retryCount < maxRetryCount) {
			retryCount++;
			return true;
		}
		return false;
	}
}

The test method

@Test(retryAnalyzer= RetryAnalyzerImpl.class)
public void VerifyRetrievePublicaAndActiveCommunity(){
	int i = ThreadLocalRandom.current().nextInt(0, 2);
	System.out.println(i);
	Assert.assertEquals(i,0);
}
What is the expected behavior?

The retries are marked as Failed correctly. And the tests are marked as Flaky.

What is the motivation / use case for changing the behavior?
Please tell us about your environment:

| Allure version | 2.13.3 |
| Test framework | [email protected] |
| Allure integration | [email protected] |
| Generate report using | allure windows [email protected] |

Other information
Lingua principale
Java
Stelle
376
Fork
241
Merge medio
1g 14h
PR unite (30g)
37

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di allure-framework/allure-java

Tutte le issue di allure-framework/allure-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.