Skip to main content

Plugin for py.test set a different exit code on uncaught exceptions

Project description

Plugin for pytest to change exit code on uncaught exceptions

  • Free software: MIT license

Features

  • You can set a different exit code when uncaught exceptions in pytest test cases will occur

Installation

You can install the plugin by running

pip install pytest-unhandled-exception-exit-code

Alternately check out the source code and run

python setup.py install

Usage

If you want to change pytest exit code to detect unhandled exceptions in tests, give the plugin the desired exit code with the following option: pytest --unhandled-exc-exit-code 13

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-unhandled-exception-exit-code-0.0.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_unhandled_exception_exit_code-0.0.2-py2.py3-none-any.whl (3.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-unhandled-exception-exit-code-0.0.2.tar.gz.

File metadata

  • Download URL: pytest-unhandled-exception-exit-code-0.0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for pytest-unhandled-exception-exit-code-0.0.2.tar.gz
Algorithm Hash digest
SHA256 65272027f42f6dc58f5418c1203cc023a6ef305774918c3cf0e0023bbababc09
MD5 bdd92e255db973a281cf5265befb8485
BLAKE2b-256 746e45e3ee7c9ec4d83f1c0d99f915bfe7051b952ae9119e7dd4ed5499a5ac9f

See more details on using hashes here.

File details

Details for the file pytest_unhandled_exception_exit_code-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_unhandled_exception_exit_code-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5d1527e30ec7f79118ce0f97dfc937819eb48f85d07f0da4f241081157353bfe
MD5 9e6f6a1cf3bc78ad2b0f1e3f35caf20d
BLAKE2b-256 e9a583844a2e2babf0bbbf068e4af96f3d2139a201de5d18018eb797706f858c

See more details on using hashes here.

Supported by

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