--- id: pytest-azurepipelines version: "1.0.5" license: MIT license_treatment: permissive maintenance: dormant --- # pytest-azurepipelines — Formatting PyTest output for Azure Pipelines UI License: permissive · Maintenance: dormant · Downloads: 858.1K/mo ## 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 above — 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 pip install pytest-azurepipelines uv add pytest-azurepipelines 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_current - Install friction: low - Maintenance: dormant - Downloads: 858.1K/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags pytest azure pipelines integration, azure devops test reporting, pytest ci cd plugin, azure pipelines test results upload, pytest nunit formatter, azure-pipelines, ci-cd, test-reporting [View on SkillFed](https://skillfed.io/packages/pytest-azurepipelines) · [View on PyPI](https://pypi.org/project/pytest-azurepipelines/)