Deferred start of xdist plugin. Is there a way to start xdist in pytest_configure? #1235
Closed
sashko1988
started this conversation in
General
Replies: 2 comments 5 replies
-
Xoud have to ensure your pytest configure hook runs before the one defined in xdist and monkeypatch the settings Ps Its processes not threads |
Beta Was this translation helpful? Give feedback.
5 replies
-
@RonnyPfannschmidt I think I found a better way. I moved the parsing of my config file into |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My environment configuration is defined in the yaml file.
pytest_configure()
hook parses that config file and loads necessary stuff.I want to load xdist based on the content of that file.
How can I make a deferred start of xdist with 8 workers, for example, if the loaded config contains the field
processes: 8
?Beta Was this translation helpful? Give feedback.
All reactions