-
Notifications
You must be signed in to change notification settings - Fork 32
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
compatibility with pytest-dependency #75
Comments
Hi! Interesting use case 🤔 How do you ensure they run in correct order without using pytest-split? Are the tests which depend on each other within the same module or even within the same class? If you could move the dependencies into fixtures, that would probably solve the issue without needing to change how pytest-split behaves. If that's out of question, I guess one option could be to introduce some CLI options to pytest-split for not splitting test modules / classes. |
Sorry, I think I misread initially. So, you are basically asking if pytest-split could be made compatible with https://pypi.org/project/pytest-dependency/? |
Yes, was just about to post that we use pytest-dependency But I didn't know that pytest-split is compatible with fixtures already. Maybe it would be worth it to refactor our tests into fixtures then as pytest-dependency seems to be out of date anyways. |
Great! I hope it works out nicely for you 🙂 |
@jerry-git |
Hi,
first: thank you for the cool tool, it really helps with faster CI pipelines :)
My request: can you make the split algorithm take pytest dependencys into account? We have same test that depend on other test to run first. Currently pytest splits theses into different groups which will result in the tests failing.
The text was updated successfully, but these errors were encountered: