allure-framework / allure-framework/allure-python

Allure report can not get case result when run case with param `--forked`

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

Descrizione

Hi Team,

I am facing issue to get case result when generate allure report using allure-pytest 3.13.1 version.

Cli: python -m pytest --forked tests/function -q --alluredir=./__out__/results

#### I'm submitting a ...
bug report

#### What is the current behavior?

image

image

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

`class TestDemo:

def test_01(self):
print("case pass")
assert True

def test_02(self):
print("case fail")
assert False

def test_03(self):
print("case pass")
assert True

def test_04(self):
print("case pass")
assert True

def test_05(self):
print("case fail")
assert False`

Cli: python -m pytest --forked tests1 -q --alluredir=./__out__/results
allure generate -o __out__/html/ __out__/results/

#### What is the expected behavior?

#### What is the motivation / use case for changing the behavior?

#### Please tell us about your environment:

- Allure version: 2.20.1
- Test framework: pytest7.3.1
- Allure adaptor: allure-pytest@2.13.1
- pytest-forked: 1.6.0

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo la demo segnalata con pytest 7.3.1, pytest-forked 1.6.0, allure-pytest 2.13.1 e le opzioni --forked e --alluredir. Confronta i risultati Allure e il report generati con i cinque risultati dei test, quindi definisci done come la rappresentazione di ogni caso con il relativo risultato corretto di successo o fallimento.

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

Valutazione

Stack tecnologico
python
Ambito
testing
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.