You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering an issue where no test cases are selected when running tests in parallel with pytest-xdist using the arguments -n auto --dist loadgroup. This issue arose suddenly, and previously, the same setup worked fine.
My test suite includes the use of the @pytest.mark.xdist_group(name="quotation") decorator to group related tests, ensuring they run on the same worker. However, now the test run outputs 0 cases selected, despite tests running correctly without the --dist loadgroup option.
When running the tests without these arguments, tests are executed correctly.
Details:
Environment:
Python version: 3.9.11
pytest version: 8.0.2
pytest-xdist version: 2.5.0
Running tests in a Linux environment via Jenkins.
Error/Output:
[INFO]: 0 个cases selected
============================= test session starts ==============================
platform linux -- Python 3.9.11, pytest-8.0.2, pluggy-1.5.0 -- /usr/bin/python
cachedir: .pytest_cache
Did anything changed that can affect this?
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Summary:
I am encountering an issue where no test cases are selected when running tests in parallel with pytest-xdist using the arguments -n auto --dist loadgroup. This issue arose suddenly, and previously, the same setup worked fine.
My test suite includes the use of the @pytest.mark.xdist_group(name="quotation") decorator to group related tests, ensuring they run on the same worker. However, now the test run outputs 0 cases selected, despite tests running correctly without the --dist loadgroup option.
When running the tests without these arguments, tests are executed correctly.
Details:
Environment:
Python version: 3.9.11
pytest version: 8.0.2
pytest-xdist version: 2.5.0
Running tests in a Linux environment via Jenkins.
Error/Output:
Did anything changed that can affect this?
Thank you in advance!
The text was updated successfully, but these errors were encountered: