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,xpassedorxfailedoutcome. - Exit code 1: Some tests had the
failedoutcome.
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
passedorxpassedoutcome. - Exit code 6: Some tests had the
xfailedoutcome 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df9fcfb205a2de82f3ae5bcaf0bc1f14b5b7ec91344bd6c13a860faf7b588d7b
|
|
| MD5 |
1e96474da2cd6f17c1e94c2dd508b323
|
|
| BLAKE2b-256 |
df91cb2765d93d47de8c5c15c83b9b33816081b77fcbb39dbf9ff28332036dcc
|
File details
Details for the file pytest_exit_status-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pytest_exit_status-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
148b377392f8ddf799472a3bc417fd15d313904a0d19d3fb3a39cc8150d2dd86
|
|
| MD5 |
439c73c2c4911849eeb8e3f78fed79f9
|
|
| BLAKE2b-256 |
65e2d8766d6136422025989e9beba552ddee04a3b45e41ed38f15f63b0ee17be
|