Riadayal / Pytest-parallel

How to run parallel automation tests in Pytest on LambdaTest. A sample repo to help you run your Pytest test scripts in parallel with LambdaTest in Python language.

Home Page:https://www.lambdatest.com/selenium-automation?utm_source=github&utm_medium=about&utm_campaign=Pytest-parallel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to run parallel automation tests in Pytest on LambdaTest

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.

Steps:

Ensure that pytest package is installed by running:

pip install pytest-selenium

To run parallel tests using PyTest, we would have to execute the below command in the terminal:

pytest -s -n=2 tests/lt_sample_todo.py

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.

Links:

LambdaTest Community