skillfed

pytest-ignore-test-results

A pytest plugin to ignore test results.

pytest-ignore-test-results v0.3.0 175.9K downloads/30d#10,257 on PyPI1
Permissive license Active released

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-results

uv

uv add pytest-ignore-test-results

poetry

poetry add pytest-ignore-test-results

Installing 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

Development Status :: 5 - Production/StableFramework :: PytestLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

pytest ignore test resultsskip test failures selectivelypytest test result suppressionignore failing tests by patternpytest custom exit codespytest test case filtering
pytest-plugintest-filteringci-cd

More Testing packages

pluggy

Pluggy provides a plugin system that lets you…

permissive · top 100 on PyPI

pytest

pytest is a testing framework that lets you…

permissive · top 100 on PyPI

virtualenv

virtualenv creates isolated Python environments…

permissive · top 100 on PyPI

coverage

Coverage.py measures which lines of Python code…

permissive · top 1,000 on PyPI

pytest-asyncio

pytest-asyncio is a pytest plugin that enables…

permissive · top 1,000 on PyPI

pytest-json-ctrf

A pytest plugin that generates test reports in…

permissive · top 1,000 on PyPI

pytest-skip-slow

A pytest plugin that skips tests marked with…

permissive · top 15,000 on PyPI

lib-detect-testenv

Detects whether code is running in a test…

permissive · top 5,000 on PyPI

pytest-filter-subpackage

A pytest plugin that adds a `-P` option to run…

permissive · top 15,000 on PyPI

pytest-custom-exit-code

A pytest plugin that lets you customize the…

permissive · top 5,000 on PyPI

pytest-incremental

pytest-incremental is a pytest plugin that…

permissive · top 15,000 on PyPI

pylint-per-file-ignores

A pylint plugin that lets you specify which…

permissive · top 15,000 on PyPI

pytest-instafail

A pytest plugin that displays test failures and…

permissive · top 5,000 on PyPI

pytest-repeat

A pytest plugin that repeats test execution a…

copyleft · top 5,000 on PyPI

pytest-error-for-skips

A pytest plugin that converts skipped tests…

permissive · top 15,000 on PyPI

pytest-pretty

A pytest plugin that formats test output with…

permissive · top 5,000 on PyPI