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

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page