Skip to main content

Enhance.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_exit_status-1.0.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_exit_status-1.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file pytest_exit_status-1.0.0.tar.gz.

File metadata

  • Download URL: pytest_exit_status-1.0.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for pytest_exit_status-1.0.0.tar.gz
Algorithm Hash digest
SHA256 df9fcfb205a2de82f3ae5bcaf0bc1f14b5b7ec91344bd6c13a860faf7b588d7b
MD5 1e96474da2cd6f17c1e94c2dd508b323
BLAKE2b-256 df91cb2765d93d47de8c5c15c83b9b33816081b77fcbb39dbf9ff28332036dcc

See more details on using hashes here.

File details

Details for the file pytest_exit_status-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_exit_status-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 148b377392f8ddf799472a3bc417fd15d313904a0d19d3fb3a39cc8150d2dd86
MD5 439c73c2c4911849eeb8e3f78fed79f9
BLAKE2b-256 65e2d8766d6136422025989e9beba552ddee04a3b45e41ed38f15f63b0ee17be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page