pytest-custom-exit-code
Exit pytest test session with custom exit code in different scenarios
Decision gist · record as of 2026-08-14
No. The package is abandoned (last update 2020) and compatibility with modern pytest and Python versions is unverified. If you need custom exit code handling, consider whether pytest's native exit codes meet your needs or explore actively maintained alternatives before relying on this plugin.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction to install, but the package is abandoned—last release was in 2019 and last commit in 2020.
- No recent maintenance or updates.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use this freely in commercial and private projects with minimal restrictions.
last release 2019-08-07 (2564 days) · last repo commit 2020-02-08 · 32 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,855,803 downloads/mo, #1,688 on PyPI
Alternatives
Verify before relying
pip install pytest-custom-exit-code
pytest --suppress-no-test-exit-code
pytest --suppress-tests-failed-exit-code- Whether the plugin works with modern pytest versions released after 2020.
- Whether the two command-line options (suppress-no-test-exit-code, suppress-tests-failed-exit-code) are the only available customizations or if there are others.
- Whether there are any known incompatibilities with current Python or pytest releases.
What it is and what it does
pytest-custom-exit-code is a pytest plugin that overrides the default exit codes pytest returns at the end of a test session. Normally, pytest exits with specific codes to signal test outcomes (e.g., 1 for failures, 5 for no tests collected). This plugin adds command-line flags to suppress or customize those exit codes in specific scenarios—for instance, to exit with 0 even when tests fail or when no tests are found, which can be useful in CI/CD pipelines where you want to handle test outcomes differently.
The plugin depends only on pytest and installs as a wheel with no compiled dependencies. It is straightforward to use via command-line flags passed to pytest. However, the project has been abandoned since 2020, with no updates to support newer pytest or Python versions, so compatibility with current environments is uncertain.
Use it for
- Suppress the exit code when pytest finds no tests, allowing CI pipelines to continue without treating it as a failure.
- Suppress the exit code when tests fail, so your build system can decide how to handle test failures independently.
- Integrate pytest into legacy CI/CD systems that expect different exit codes than pytest's defaults.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last update 2020) and compatibility with modern pytest and Python versions is unverified. If you need custom exit code handling, consider whether pytest's native exit codes meet your needs or explore actively maintained alternatives before relying on this plugin.
Install
pytest-custom-exit-code on PyPI
Before you install
Low friction to install, but the package is abandoned—last release was in 2019 and last commit in 2020. No recent maintenance or updates.
License in practice
MIT license is permissive; you can use this freely in commercial and private projects with minimal restrictions.
Quickstart
pip install pytest-custom-exit-code
pytest --suppress-no-test-exit-code
pytest --suppress-tests-failed-exit-code
Verify before relying
- Whether the plugin works with modern pytest versions released after 2020.
- Whether the two command-line options (suppress-no-test-exit-code, suppress-tests-failed-exit-code) are the only available customizations or if there are others.
- Whether there are any known incompatibilities with current Python or pytest releases.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepytest |
| Maintenance | Abandoned 2,564 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,855,803 / month, #1,688 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Testing |
Evidence: pytest_custom_exit_code-0.3.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest exit code customization”
- pytest-custom-exit-codeA pytest plugin that lets you customize the exit code pytest returns…
- pytest-ignore-test-resultsA pytest plugin that selectively ignores test case results while…
- pytest-custom-reportA pytest plugin that lets you customize the symbols and strings…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pytest-error-for-skips · pytest-logging · pytest-picked · pytest-threadleak · pytest-plus · pytest-ignore-test-results · pytest-deadfixtures · pytest-rich · pytest-emoji · exit-codes