<div dir="ltr"><div>Hi,</div><div><br></div><div>Is there a way in pytest (or a plugin) to setup test fixtures in parallel?</div><div>Not running the tests in // but only setup the fixtures in //.</div><div><br></div><div>Suppose I have a number of tests and each have a different number of fixtures.</div><div>The fixtures take long to setup, given they are independent of each other and not cpu limited, setup could be done in //.</div><div><br></div><div>I prefer not to stuff all fixtures in one major fixture and control from this one how to build.</div><div>Not all tests use the same fixtures, and fixtures come and go. Ideally I`m looking for a way to add additional decorator (or arg on existing fixture pytest decorator) on a fixture indicating it can be setup in //.</div><div><br></div><div>I`m familiar with the concept of scope on fixtures, but even for session scoped fixtures I would like to setup them in //.</div><div><br></div><div>Probably not so trivial given fixtures can be hierarchical.</div><div><br></div><div>The hook pytest_fixture_setup looks the way to go, I`m wondering how to run rest of the fixture setup chain in a thread and return the fixture when done, This feels like breaking the api model behind hooks, given return value of hook determines to stop the chain. Not modify rest of the call chain.<br></div><div><br></div><div>Wouter</div></div>