Run Python Pytest testcases in parallel using pytest-xdist

preview_player
Показать описание
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
Рекомендации по теме