Integrate pytest-bdd and tavern with TestRail

There is a very handy plugin that integrates pytest with TestRail quite smoothly. It is called pytest-testrail and can be set up with minimal configuration. The only requirement is to create an API key for your TestRail account and pass the rest configurations as command line arguments or via a …

Continue reading »

Setup your tests once per session while using pytest and xdist

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 »