Skip to main content

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

Project description

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'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-azure-devops-0.2.0.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

pytest_azure_devops-0.2.0-py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page