pytest-azure-devops

Simplifies using azure devops parallel strategy (https://docs.microsoft.com/en-us/azure/devops/pipelines/test/parallel-testing-any-test-runner) with pytest.


License
MPL-2.0
Install
pip install pytest-azure-devops==0.2.0

Documentation

pytest-azure-devops

PyPI version Python versions See Build Status on 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'