Skip to main content

Plugin for py.test to enter PyCharm debugger on uncaught exceptions

Project description

https://badge.fury.io/py/pytest-pycharm.png

Plugin for pytest to enter PyCharm debugger on uncaught exceptions

  • Free software: BSD license

Features

  • Uncaught exceptions in pytest test cases will trigger the PyCharm debugger

Installation

You can install the plugin by running

pip install pytest-pycharm

Alternately check out the source code and run

python setup.py install

Usage

You are ready to go right after the plugin installation. Execute any test in PyCharm by right-clicking on a test and selecting Debug pytest in …. The debugger will pause on a false assertion (see test example).

The plugin also works with custom pytest Run Configurations: Run | Edit Configurations | Add New Configuration | Python tests | pytest.

Note: make sure the Run Configuration uses the correct interpreter with pytest-pycharm installed.

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-pycharm-0.6.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

pytest_pycharm-0.6.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file pytest-pycharm-0.6.0.tar.gz.

File metadata

  • Download URL: pytest-pycharm-0.6.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for pytest-pycharm-0.6.0.tar.gz
Algorithm Hash digest
SHA256 750ea725b43eed4940a9826e381fd57513335cdb7078d714327e4eefd33a2f30
MD5 80c27e11882d906c0d1b31df849392ac
BLAKE2b-256 c036e88e093f4452c341bc87574ec1eb5d916a9faccd8af0cfc26f7987ed5ac2

See more details on using hashes here.

File details

Details for the file pytest_pycharm-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_pycharm-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for pytest_pycharm-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d363c98a6f14ae27eb7a4f30be90946fb3c93003365ae18632161fc988de3a7
MD5 17ae5aa779c2d21c0eabe37f460ebff3
BLAKE2b-256 e99bf3670ff1c419038a37d368df15132bf81ff8abeef0227b52ff0eabeb95b6

See more details on using hashes here.

Supported by

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