pytest-exit-code

A pytest plugin that overrides the built-in exit codes to retain more information about the test results.
Features
This plugin changes the exit code returned by running pytest.
The exit codes can range from 0 to 63 and are a combination of the following bitwise flags:
| Flag | Description |
|---|---|
0 |
All tests passed. |
1 |
One or more tests passed. |
2 |
One or more tests failed. |
4 |
One or more tests errored. |
8 |
One or more tests were skipped. |
16 |
One or more tests xfailed. |
32 |
One or more tests xpassed. |
So:
- An exit code of
2means that all tests failed. - An exit code of
6means that all tests either failed or errored. - An exit code of
7indicates that the result contains a mix of passed, failed and errored tests.
Installation
$ pip install python-exit-code
Contributing
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
License
Distributed under the terms of the Apache Software License 2.0 license, pytest-exit-code is free and open source software.
Metadata
Release files for pytest-exit-code 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest_exit_code-0.2.0.tar.gz | 12.8 kB | Without provenance | Details for pytest_exit_code-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_exit_code-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pytest_exit_code-0.2.0-py3-none-any.whl |
Total release size: 24.1 kB
Release files / pytest_exit_code-0.2.0.tar.gz
| Download URL | pytest_exit_code-0.2.0.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0dafcf72303d8a9fdc1c4241d864b68740035171fd0ef1c2c534824ece7b0e5d
|
|
BLAKE2b-256 checksum How to use checksums |
7cb25dd8e2cd67cccc2076254f3a9ec10b94019773b35d96350fa8de7f21b0c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / pytest_exit_code-0.2.0-py3-none-any.whl
| Download URL | pytest_exit_code-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd6a3a27abad77494c82c3dcf984b18f7c6ef6d1efb56c64f8ed7f2fe66a6ef7
|
|
BLAKE2b-256 checksum How to use checksums |
262923e88aa2f0d5fc5a0335f8b4a0971e494544afacd6b819e40f68316b486c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for pytest-exit-code 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.