pytest-azure-devops
Simplifies using azure devops azure devops parallel strategy with pytest.
Instead of using a powershell as in ParallelTestingSample-Python to do the test selection we we can tell pytest to directly take care of selecting the right subset.
This pytest plugin was generated with Cookiecutter along with @hackebrot's cookiecutter-pytest-plugin template.
Installation
You can install "pytest-azure-devops" via pip from PyPI:
$ pip install pytest-azure-devops
Usage
Just pip install pytest-azure-devops
before running pytest on azure devops and make sure you use
jobs:
- job: tests_parallel_ci
strategy:
parallel: 2
steps:
- script: python -m pip install --upgrade pytest-azure-devops
displayName: 'Install dependencies'
- script: python -m pytest mytests
displayName: 'Run pytest'