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

Sorting doesn't work with Xdist and parametrized tests #3

Open
gsolovev-bsci opened this issue Feb 21, 2023 · 0 comments
Open

Sorting doesn't work with Xdist and parametrized tests #3

gsolovev-bsci opened this issue Feb 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@gsolovev-bsci
Copy link

gsolovev-bsci commented Feb 21, 2023

Sorting the parametrized tests based on their 'Pass/Fail' status doesn't work as expected.

For example in the test like:
@pytest.mark.parametrize("a", list(range(1, 100)))
def test_foo(a):
assert a % 5 != 0

If I run it with the pytest -k test_foo -n 4
Expected result: the parametrized tests are sorted - failed test first, then passed one
Actual result: the parametrized tests are not sorted as expected

@jsfehler jsfehler added the bug Something isn't working label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants