Setup your tests once per session while using pytest and xdist
Wed 20 October 2021
, in Test Automation
Using pytest along with xdist can be a powerful way to run tests in parallel.
However, one of the caveats one should be aware of is the ‘one time setup’ (or teardown).
Normally, in pytest, when you want to execute something once per test session before running the tests, you …
Continue reading »