-
Notifications
You must be signed in to change notification settings - Fork 158
tests: speed up retry conformance tests #655
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
Conversation
cojenco
commented
Nov 19, 2021
- Speed up retry conf tests to run in parallel with pytest plugin
- Update readme file
noxfile.py
Outdated
session.run("py.test", "--quiet", conformance_test_path, *session.posargs) | ||
session.run( | ||
"py.test", "-n", "auto", "--quiet", conformance_test_path, *session.posargs | ||
) |
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.
I think it might be a better DX to inject the "-n", "auto"
into the command line only if session.posargs
is empty: that way, the user could chose to e.g. restrict the number of cores available, or even distribute the tests across multiple hosts.
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.
@tseaver good idea! I've updated the noxfile. PTAL, thanks!