Lessons Learned


pytest-xdist allows you to run failing tests in a loop inside a subprocess until it passes by looking for file changes to re-run previously failing tests. You can take advantage of it by having pytest-xdist installed and passing the command line flag -f or --looponfail to your pytest command. For more info see: https://docs.pytest.org/en/3.0.0/xdist.html#xdist-pytest-distributed-testing-plugin

Did you like?