Closed languitar closed 3 years ago
Hi!
What do you mean by parallel test execution with inject? Can you give an example?
For instance for pyest, pytest-parallel provides a way to execute tests in multiple processes and also threads. For multi-threaded testing, the global nature of the inject instance is currently a hindrance, because reconfiguring the injector for one test might affect another test currently running in another parallel thread.
The inject
API is built on top of a global injector singleton. Getting rid of this singleton requires rewriting the API and dramatically complicates usage and thread-safety.
However, you still can use pytest-parallel to run tests in parallel:
Ok, I know about xdist and that option. This was more a question of whether something like that is generally in scope or not.
Btw. do you have a preferred way of how to integrate inject with pytest fixtures?
Btw. do you have a preferred way of how to integrate inject with pytest fixtures?
Well, I've never used pytest.
Ok. Thanks for the help in any case!
Is there any support or plan for enabling parallel test execution with inject?