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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pytest-azure-devops-0.2.0.tar.gz.

File metadata

  • Download URL: pytest-azure-devops-0.2.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for pytest-azure-devops-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5e2ef959c72584cf4a88a568ef1a161707be50f4f34103371cddf2d925ec9998
MD5 af41f3af05cef89cb88ad2c1f40422c5
BLAKE2b-256 c47d3824f0ab9a07921bbfa61ac5df6f00929503cc1517e9cee451743c53a0d0

See more details on using hashes here.

File details

Details for the file pytest_azure_devops-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_azure_devops-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b5bd7aef87f80ea9a98c4894873e0d4be65f3fe56c63206a005ec7a1d85e098
MD5 7887a079859edd81adf418a406a691b4
BLAKE2b-256 dd3cefdd5f7b0b61270259fb2d264b5a8303d30420ebe7e94185d9cd97619c05

See more details on using hashes here.

Supported by

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