Run Python Pytest testcases in parallel using pytest-xdist

Опубликовано: 18 Март 2023
на канале: Jaydeep Karale
2,775
88

Pytest is a popular Python testing framework. However as the number of tests grow it takes long time to execute the tests. This can be countered by running the tests in parallel using pytest-xdist package.

After installing pytest-xdist use the -n flag and specify the parameter as either auto or an integer based on your CPU cores and the tests will run faster