allure-framework / allure-python

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

Duplicated tests when running with pytest-parallel #689

Closed b0mbays closed 1 year ago

b0mbays commented 1 year ago

I'm submitting a ...

What is the current behavior?

Hi, I have managed to get pytest-parallel and allure-pytest to run after following this suggestion but now we're seeing duplicated test cases inside the report when running in parallel.

In the screenshot below, the left hand side shows the generated files from pytest after a parallel run (24 files) and the right hand side is a normal run (6 files). It seems to be duplicated by 4.

Screenshot 2022-09-27 at 12 43 29

What is the expected behavior?

For there to be no duplicated test files.

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

Having the ability to run tests in parallel and generate reports would be very useful for users to speed up test executions.

Please tell us about your environment:

Thank you

skhomuti commented 1 year ago

yea, duplicate #348 I'll try to investigate this problem