Skip to main content

A Pytest plugin to exit non-zero exit code when the configured maximum warnings has been exceeded.

Project description

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:

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:

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 for more details.

Authors

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_max_warnings-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

pytest_max_warnings-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file pytest_max_warnings-0.1.0.tar.gz.

File metadata

  • Download URL: pytest_max_warnings-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytest_max_warnings-0.1.0.tar.gz
Algorithm Hash digest
SHA256 12dfe7d2d101bc0eb6d9e09a55666a7e19a8f6af1f3aa32007bd47c2682ea95a
MD5 f1d7e10109de0b48711bcaf7c89030fe
BLAKE2b-256 4351aa11a1b07ab112e9d89351c1e834ed6be58b0f99d0b36db8e2944ee57a96

See more details on using hashes here.

File details

Details for the file pytest_max_warnings-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_max_warnings-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83011ae2451125cd2443ff6232133ce90a77ef9f330f6033a387f4d769db85a3
MD5 aee086b7f89350bf5bcf18b626811064
BLAKE2b-256 5b553e9ad09d0fdd7564ce4b1d9efe40c45c3a3150b2124cb66f0b92ec2c3dd1

See more details on using hashes here.

Supported by

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