pytest-ignore-test-results
A pytest plugin to ignore test results.
What it is and what it does
This pytest plugin lets you run tests normally but selectively suppress their results from the final report. Instead of skipping tests or marking them as expected failures, you execute them fully and then choose which ones to ignore—useful when you have known failures you want to track but not block your build, or when you need to suppress specific test outcomes without modifying test code.
You specify which tests to ignore via command-line patterns (exact names or wildcards) or by loading patterns from text files. The plugin also gives you control over exit codes: you can return code 6 when all failures are ignored, or suppress "no tests collected" errors entirely. It supports pytest's custom test case naming through a hook, making it flexible for complex test hierarchies.
Use it for:
- Suppress known flaky tests in CI while still running them and tracking their status.
- Ignore platform-specific test failures without modifying the test suite itself.
- Load a dynamic ignore list from a file to manage which tests should not block builds.
- Return custom exit codes to signal different failure scenarios to downstream tooling.
- Suppress 'no tests collected' errors when running against directories that may be empty.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A pytest plugin that selectively ignores test case results while still executing the tests, allowing you to suppress failures from specific tests by name or pattern.
Yes, if you need to selectively suppress test results without modifying test code or skipping tests outright. The plugin is actively maintained, has no known vulnerabilities, and adds minimal install friction. It's most valuable in CI/CD pipelines where you want to run all tests but control which ones block the build.
Install
pytest-ignore-test-results on PyPI
pip
pip install pytest-ignore-test-resultsuv
uv add pytest-ignore-test-resultspoetry
poetry add pytest-ignore-test-resultsInstalling pytest-ignore-test-results
Before you install
Low friction: pure Python wheel with only pytest as a runtime dependency. Actively maintained with recent commits and marked production-stable.
License in practice
Licensed under Apache Software License (permissive), so you can use, modify, and redistribute freely in most contexts.
Quickstart
pip install pytest-ignore-test-results
pytest --ignore-result-cases "test_feature_1" "test_feature_*"
Verify before relying
- Whether ignoring test results affects CI/CD pipeline behavior beyond exit codes in practice.
- How the plugin interacts with pytest plugins that also modify test result reporting.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pytest |
| Maintenance | actively maintained — 557 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 175,948/month — #10,257 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pytest_ignore_test_results-0.3.0-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-skip-slowA pytest plugin that skips tests marked with…
permissive · top 15,000 on PyPI
lib-detect-testenvDetects whether code is running in a test…
permissive · top 5,000 on PyPI
pytest-filter-subpackageA pytest plugin that adds a `-P` option to run…
permissive · top 15,000 on PyPI
pytest-custom-exit-codeA pytest plugin that lets you customize the…
permissive · top 5,000 on PyPI
pytest-incrementalpytest-incremental is a pytest plugin that…
permissive · top 15,000 on PyPI
pylint-per-file-ignoresA pylint plugin that lets you specify which…
permissive · top 15,000 on PyPI
pytest-instafailA pytest plugin that displays test failures and…
permissive · top 5,000 on PyPI
pytest-repeatA pytest plugin that repeats test execution a…
copyleft · top 5,000 on PyPI
pytest-error-for-skipsA pytest plugin that converts skipped tests…
permissive · top 15,000 on PyPI
pytest-prettyA pytest plugin that formats test output with…
permissive · top 5,000 on PyPI