Run tests in parallel with pytest
Submitted by harrydev on Mon, 11/05/2018 - 11:57When we have a lot of test cases in our framework, it takes a lot of time to execute all the test cases.
Instead of running tests sequentially, or one after the other, parallel testing allows us to execute multiple tests at the same and decrease the time taken. Parallel testing helps to faster testing and has a quicker turn around in release process.
To run tests in parallel using pytest, we need pytest-xdist plugin which extends pytest with some unique test execution modes.