A pytest plugin that overrides the built-in exit codes to retain more information about the test results.
Project description
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 15
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. |
So:
- An exit code of
2
means that all tests failed. - An exit code of
6
means that all tests either failed or errored. - An exit code of
7
indicates 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.
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
Hashes for pytest_exit_code-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6523ea9c79c5f911a1429d295af381ee02671fa9d6e79369a4ba94421354b75b |
|
MD5 | 06a33e93b3689d8e76780af88325eefe |
|
BLAKE2b-256 | f972bbf4f07e1bd303db0045d8288452a7abb9cc5f1db3532c6744b1223f8d02 |