allure-framework / allure-framework/allure-python

allure-pytest 2.13.2 will merge parameterized use cases

Aperta
#772 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
814
Fork
260
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

#### Bug Description
When using @pytest.mark.parametrize() parametrization, the use cases are merged in the generated allure report, and it is not possible to generate an execution result record for each parametrized use case.

#### Steps to reproduce
![image](https://github.com/allure-framework/allure-python/assets/35887237/9e19ceb4-a67c-46dd-a613-37c4aa9eb2c4)

#### Getting report results
The @pytest.mark.parametrize() parameterization executes four use cases, three of which pass and one of which fails, and sets the failing use case to retry once, and after the execution is complete, the generated allure report can only see the last report record, and the other use case executions are all categorized under " Retries" below
![image](https://github.com/allure-framework/allure-python/assets/35887237/74652429-d100-4268-851f-3a02c64a9405)

#### Expected Result
It is possible to display execution results for each use case individually, as in allure-pytest 2.13.1.
![image](https://github.com/allure-framework/allure-python/assets/35887237/6bf5af4a-83d0-47f4-8b78-4f3b37b3ffcd)

#### Running environment
- Allure version: 2.13.0
- Test framework: pytest 7.1.0
- Allure adaptor: allure-pytest 2.13.2

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo il problema con @pytest.mark.parametrize() usando pytest 7.1.0 e allure-pytest 2.13.2, quindi confronta il report generato con quello di allure-pytest 2.13.1. Il lavoro è completato quando ogni caso d'uso parametrizzato ha un proprio risultato di esecuzione, incluso il caso fallito e il relativo nuovo tentativo, invece di essere raggruppato sotto Retries.

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

Valutazione

Stack tecnologico
python
Ambito
testing
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.