└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # How to run parallel automation tests in Pytest on [LambdaTest](https://www.lambdatest.com/?utm_source=github&utm_medium=repo&utm_campaign=Pytest-parallel) 2 | 3 | If you want to run parallel automation tests in Pytest on Lambdatest, you can use the following steps. You can refer to sample test repo [here](https://github.com/LambdaTest/pytest-selenium-sample). 4 | 5 | # Steps: 6 | 7 | Ensure that pytest package is installed by running: 8 | ```bash 9 | pip install pytest-selenium 10 | ``` 11 | 12 | To run parallel tests using PyTest, we would have to execute the below command in the terminal: 13 | 14 | ```bash 15 | pytest -s -n=2 tests/lt_sample_todo.py 16 | ``` 17 | 18 | In the above command, we have used -s to disable the output capture & -n is used to specify the number of parallel test execution. Your test results would be displayed on the test console (or command-line interface if you are using terminal/cmd) and on [LambdaTest automation dashboard](https://automation.lambdatest.com/build). 19 | 20 | # Links: 21 | 22 | [LambdaTest Community](http://community.lambdatest.com/) 23 | 24 | --------------------------------------------------------------------------------