pytest-azurepipelines
Formatting PyTest output for Azure Pipelines UI
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-azurepipelinesuv
uv add pytest-azurepipelinespoetry
poetry add pytest-azurepipelinesInstalling 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
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
pytest-nunitA pytest plugin that generates NUnit3-format…
permissive · top 15,000 on PyPI
pytest-loggingA pytest plugin that configures Python logging…
permissive · top 15,000 on PyPI
python-coverallsUploads Python code coverage reports to…
permissive · top 15,000 on PyPI
pytest-regressionsProvides pytest fixtures for writing regression…
permissive · top 5,000 on PyPI
pytest-error-for-skipsA pytest plugin that converts skipped tests…
permissive · top 15,000 on PyPI
pytest-xmlA pytest plugin that generates XML output from…
unclear · top 15,000 on PyPI
pytest-richA pytest plugin that uses rich to format and…
permissive · top 15,000 on PyPI
pytest-jira-xrayA pytest plugin that marks individual tests…
permissive · top 15,000 on PyPI
pytest-coverpytest-cover is a pytest plugin for measuring…
permissive · top 15,000 on PyPI