pytest-dev/pytest-bdd

Does pytest-bdd support pytest-xdist?

jun-x-nova opened this issue · 2 comments

Running pytest-bdd (selenium script) in parallel with pytest-xdist does not collect the results in the report.

I wasn't even able to run the tests with pytest-xdist.
I posted the issue in pytest-dev/pytest-xdist#1038
and pytest-xdist dev responded with:

Pytest-bdd Lacks a report serialize/deserialize Hook to handle its data
This is a pytest-bdd issue

Only way I was able to run in parallel is using pytest-parallel, but its very old and seems to be no longer supported.
I think this issue is critical, parallel execution is a basic need.

@jun-x-nova can you share the OS, Python version and your project's requirements?

Hi, pytest-bdd works with pytest-xdist, we also have a test for it. If it doesn't work for you, please provide a MCVE so that I can debug the issue.

I even tried reproducing the issue installing py3.7, pytest==7.4.3, pytest-bdd==6.1.1, pytest-xdist==3.5.0, but I don't see any error. EDIT: this doesn't belong here, it's about pytest-dev/pytest-xdist#1038.

Closing this unless more info is provided.