skillfed

pytest-azurepipelines

Formatting PyTest output for Azure Pipelines UI

pytest-azurepipelines v1.0.5 858.1K downloads/30d#4,882 on PyPI124
Permissive license MIT DORMANT released

What it is and what it does

pytest-azurepipelines is a pytest plugin that bridges test execution and Azure Pipelines CI/CD reporting. When you run pytest with this plugin installed in an Azure Pipelines agent, it automatically captures test results, formats them to show docstrings and module names in the Pipelines UI, and uploads them without requiring a separate reporting step. It also detects and uploads code coverage data, packages HTML coverage reports as build artifacts, and handles path mapping for Docker containers automatically.

The plugin requires no configuration to start using—install it alongside pytest and pytest-nunit, then run pytest normally. It offers optional flags to customize test run titles, shorten docstrings, change report directories, and disable specific features like Docker discovery or coverage upload. Two fixtures are available for advanced use: record_pipelines_property to add metadata tags to test cases, and add_pipelines_attachment to attach files to individual tests.

Use it for:

  • Automatically report pytest results to Azure Pipelines without manual upload steps or extra configuration.
  • Display test coverage metrics and package HTML coverage reports as build artifacts in Azure Pipelines.
  • Run tests inside Docker containers and have results correctly mapped back to the host paths in Azure Pipelines.
  • Add custom metadata and file attachments to individual test cases for richer reporting in the Pipelines UI.
  • Shorten long docstrings in test output for cleaner Azure Pipelines test result display.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A pytest plugin that automatically formats test output and uploads results to Microsoft Azure Pipelines, with optional code coverage integration and Docker support.

Yes, if you run pytest in Azure Pipelines and want zero-configuration test result reporting. The plugin is stable and low-friction to install. However, maintenance is dormant—last release was 2023-10-06—so if you encounter bugs or need features for recent pytest or Azure Pipelines changes, you may need to fork or find an actively maintained alternative. No known vulnerabilities.

Install

pytest-azurepipelines on PyPI

pip

pip install pytest-azurepipelines

uv

uv add pytest-azurepipelines

poetry

poetry add pytest-azurepipelines

Installing pytest-azurepipelines

Before you install

Low friction install with a pure-Python wheel. Maintenance is dormant—last release was 2023-10-06 and no commits since 2025-02-18, though the repository remains active and marked Production/Stable. Suitable for stable Azure Pipelines workflows but expect no active bug fixes or feature development.

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions—no viral copyleft obligations.

Quickstart

pip install pytest-azurepipelines
pytest tests/ --test-run-title="My Test Run"

# Optional with coverage reporting:
pytest tests/ --cov my_project --cov-report html

Requires Azure Pipelines environment variables to be present; plugin detects and uses them automatically but will not upload results outside an Azure Pipelines agent context.

Verify before relying

  • Whether the plugin works correctly with pytest versions released after 2023-10-06.
  • Current compatibility with recent Azure Pipelines API changes or breaking updates.
  • Whether Docker path mapping still works with modern container runtimes.
  • Whether code coverage upload integrates correctly with coverage tools installed separately.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.5)
Install friction low — pure-Python wheel
Runtime dependencies 3 — importlib-resources, pytest, pytest-nunit
Maintenance dormant — 1,043 days since the last release
Last repo commit
First released
Downloads 858,105/month — #4,882 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pytest_azurepipelines-1.0.5-py3-none-any.whl

Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Testing

Tags

pytest azure pipelines integrationazure devops test reportingpytest ci cd pluginazure pipelines test results uploadpytest nunit formatter
azure-pipelinesci-cdtest-reporting

More Testing packages