Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests not selected when running with -n auto --dist loadgroup #1134

Open
nikolapopovic opened this issue Sep 26, 2024 · 1 comment
Open

Tests not selected when running with -n auto --dist loadgroup #1134

nikolapopovic opened this issue Sep 26, 2024 · 1 comment

Comments

@nikolapopovic
Copy link

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:

[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!

@RonnyPfannschmidt
Copy link
Member

Off hand it's unclear what's happening, a minimal reproducer would be of immense help as off it's unclear what's happening

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants