-
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
Add support for --indulgent-ordering
option
#50
base: develop
Are you sure you want to change the base?
Conversation
bfbb2b6
to
2b39ffa
Compare
This requests that the plugin be run first, allowing other plugins to override its ordering. This is useful if the order requirements provided by this plugin are intended to be priorities, rather than absolute requirements. For example, if some test cases run slower than others in your test suite, you can mark them as desirable to run first when running tests in parallel, allowing a more efficient use of a multi-core processor. By adding the `--indulgent-ordering` option, this ordering can still be overridden by, for example, the `--failed-first` option, which prioritizes tests which failed during the last run. Without `--indulgent-ordering`, the `--failed-first` option will be overridden by pytest-ordering, reducing its usefulness by increasing the total time until the results are available.
8315fb7
to
04d8b2e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. Thank you for adding tests and updating the docs.
If you can make the minor changes I suggest I'll get this merged.
Thanks for the review! The changes are made. |
Sorry I let this go so long. I'll merge soon and hopefully do a release this weekend. |
@andyg0808 - FWIW, I integrated your PR into my fork, though I couldn't get it merged cleanly, so I did it manually. Same for your xdist test in PR #52. |
This requests that the plugin be run first, allowing other plugins to
override its ordering. This is useful if the order requirements
provided by this plugin are intended to be priorities, rather than
absolute requirements. For example, if some test cases run slower than
others in your test suite, you can mark them as desirable to run first
when running tests in parallel, allowing a more efficient use of a
multi-core processor. By adding the
--indulgent-ordering
option,this ordering can still be overridden by, for example, the
--failed-first
option, which prioritizes tests which failed duringthe last run. Without
--indulgent-ordering
, the--failed-first
option will be overridden by pytest-ordering, reducing its usefulness
by increasing the total time until the results are available.