-
Notifications
You must be signed in to change notification settings - Fork 41
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
pytest-ordering doesn't honor test dependencies #58
Comments
What do you think the behavior should be in this case? |
The dependencies should be run first. |
Hi all, I also think that should be very useful to automatically reorder the test execution based on dependencies. Should be nice if pytest-dependency and pytest-ordering will join their efforts. This issue of pytest-dependency is related: RKrahl/pytest-dependency#20 |
I didn't want a dependency on networkx for @jwineinger 's solution (https://gist.github.com/jwineinger/e41473cd5500554a189d8c97ac28f883), so I rolled my own solution that worked for my (admittedly) not-so-large test set: https://gist.github.com/phillip-lu-axomic/3a8c8c246975667da3162decac9b5f2e Hopefully this is of some use to others. |
FWIW, I also added an option to order dependencies in my fork, though it looks like the issue is on the way to be solved in pytest-dependency. |
The text was updated successfully, but these errors were encountered: