https://github.com/miketheman/pytest-max-warnings
A Pytest plugin to exit non-zero exit code when the configured maximum warnings has been exceeded
https://github.com/miketheman/pytest-max-warnings
pytest pytest-plugin python python3 testing testing-tools
Last synced: 10 months ago
JSON representation
A Pytest plugin to exit non-zero exit code when the configured maximum warnings has been exceeded
- Host: GitHub
- URL: https://github.com/miketheman/pytest-max-warnings
- Owner: miketheman
- License: mit
- Created: 2024-10-23T02:27:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-23T04:07:41.000Z (over 1 year ago)
- Last Synced: 2025-08-27T13:29:20.220Z (10 months ago)
- Topics: pytest, pytest-plugin, python, python3, testing, testing-tools
- Language: Python
- Homepage: https://pypi.org/project/pytest-max-warnings/
- Size: 9.77 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pytest-max-warnings
A Pytest plugin to exit non-zero exit code
when the configured maximum warnings has been exceeded.
## Installation
You can install "pytest-max-warnings" via [pip](https://pypi.org/project/pytest-max-warnings/):
```bash
pip install pytest-max-warnings
```
or any other package manager you prefer.
## Usage
You can set the maximum number of warnings allowed by using the `--max-warnings` option:
```bash
pytest --max-warnings 10
```
If the number of warnings exceeds the maximum, the test run will exit with a non-zero exit code.
## License
Distributed under the terms of the MIT license, "pytest-max-warnings" is free and open source software.
See [LICENSE](./LICENSE) for more details.
## Authors
- [@miketheman](https://github.com/miketheman)