Skip to main content

pytest-exit-status

Pytest plugin that overrides the exit codes.

Pytest only offers two exit status codes for full test executions (when all collected tests were executed):

  • Exit code 0: All tests had the passed, xpassed or xfailed outcome.
  • Exit code 1: Some tests had the failed outcome.

Some continuous integration tools like Jenkins support the unstable status and it can be frustrating not to take advantage of this pipeline status to highlight test executions with xfailed tests.

This plugin aims to modify the exit code 0 and add a new exit code 6.

The proposed exit codes are:

  • Exit code 0: All tests had the passed or xpassed outcome.
  • Exit code 6: Some tests had the xfailed outcome or there were some errors (setup or teardown errors).

The other exit codes are not modified.

To install the plugin:

pip install pytest-exit-status

If you like this software, consider contributing to the project through buy me a coffee

Metadata

Release files for pytest-exit-status 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-exit-status 1.0.0
File Size Uploaded
pytest_exit_status-1.0.0.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-exit-status 1.0.0
File Interpreter ABI Platform
pytest_exit_status-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.0 kB

Release files / pytest_exit_status-1.0.0.tar.gz

Download URL pytest_exit_status-1.0.0.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
df9fcfb205a2de82f3ae5bcaf0bc1f14b5b7ec91344bd6c13a860faf7b588d7b
BLAKE2b-256 checksum
How to use checksums
df91cb2765d93d47de8c5c15c83b9b33816081b77fcbb39dbf9ff28332036dcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.16

Release files / pytest_exit_status-1.0.0-py3-none-any.whl

Download URL pytest_exit_status-1.0.0-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
148b377392f8ddf799472a3bc417fd15d313904a0d19d3fb3a39cc8150d2dd86
BLAKE2b-256 checksum
How to use checksums
65e2d8766d6136422025989e9beba552ddee04a3b45e41ed38f15f63b0ee17be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.16

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page