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

Add support for --indulgent-ordering option #50

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

andyg0808
Copy link

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.

@andyg0808 andyg0808 force-pushed the run-before-failedfirst branch from bfbb2b6 to 2b39ffa Compare January 23, 2019 03:45
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.
@andyg0808 andyg0808 force-pushed the run-before-failedfirst branch from 8315fb7 to 04d8b2e Compare January 23, 2019 06:29
Copy link
Owner

@ftobia ftobia left a 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.

pytest_ordering/__init__.py Outdated Show resolved Hide resolved
pytest_ordering/__init__.py Outdated Show resolved Hide resolved
@andyg0808
Copy link
Author

Thanks for the review! The changes are made.

@ftobia
Copy link
Owner

ftobia commented Jun 14, 2019

Sorry I let this go so long. I'll merge soon and hopefully do a release this weekend.

@mrbean-bremen
Copy link

mrbean-bremen commented Nov 4, 2020

@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.

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

Successfully merging this pull request may close these issues.

3 participants