allure-framework / allure-python

Allure integrations for Python test frameworks
https://allurereport.org/
Apache License 2.0
719 stars 235 forks source link

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

Open pengdada00100 opened 1 year ago

pengdada00100 commented 1 year ago

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:

pengdada00100 commented 1 year ago

HI, No update?

ghost commented 1 year ago

@pengdada00100 Hi, sorry, didn't have much time. Will take a closer look soon.