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 are incorrectly split when there are a lot of slow skipped tests #78

Open
knedlsepp opened this issue Sep 7, 2023 · 0 comments
Open

Comments

@knedlsepp
Copy link

knedlsepp commented Sep 7, 2023

I'm running pytest-split on a test suite that has a lot of slow tests which are pytest.marked as slow and skipped by default. I can include all these tests by using a custom pytest --all-tests option.
The issue I'm seeing now is that when I create a .test_durations file via pytest --all-tests --store-durations then the regular pytest --splits 4 ... run without the --all-tests will be unbalanced. It seems as though pytest-split is taking into account the runtime of the skipped tests and thus failing to produce a balanced split. A workaround is to store one .tests_durations file for pytest --all-tests and a separate file for the plain pytest, but I think ideally this should not be required.

@knedlsepp knedlsepp changed the title Tests are incorrectly split when there are a lot of skipped tests Tests are incorrectly split when there are a lot of slow skipped tests Sep 7, 2023
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

1 participant