pytest-azurepipelines

1.0.5 · active · verified Sun Apr 12

pytest-azurepipelines is a plugin for the pytest testing framework that enhances its integration with Azure Pipelines. It formats pytest output to improve readability in the Azure Pipelines UI, automatically uploads test results, and integrates with pytest-cov for code coverage reporting. The current version is 1.0.5. Releases appear to be event-driven rather than on a fixed cadence, with significant updates in 2020 and 2022-2023.

Warnings

Install

Imports

Quickstart

Install `pytest-azurepipelines` alongside `pytest` in your Azure Pipeline environment. The plugin automatically integrates with Azure Pipelines by running `pytest` in a script step, formatting output and uploading test results without further configuration.

# Example Azure Pipelines YAML snippet
steps:
- script: |
    python -m pip install --upgrade pip
    pip install pytest pytest-azurepipelines
    pip install -e . # Install your project's test dependencies
    pytest tests/
  displayName: 'Run Pytest with Azure Pipelines Plugin'

view raw JSON →