Skip to main content

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

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.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pytest-unhandled-exception-exit-code-0.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2

File hashes

Hashes for pytest-unhandled-exception-exit-code-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c7a6935c9341e2870cfffa307858400b0e23015810eccd3bef9a886620bd59dd
MD5 d511058e072c8f44f04bae78626160c9
BLAKE2b-256 5ca5fd52e996edeb02c0b9f10f997f1b47a54ca8858969b6d7a09858613cabc5

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.2

2 files

This release

0.0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page