Plugin for py.test to enter PyCharm debugger on uncaught exceptions
Project description
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
Built Distribution
Hashes for pytest_pycharm-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a642e3e21487cb2e1bf78464edb7f1b31996f8fce34780786f218144de9d7cf |
|
MD5 | 9ff889df7721b8a552962c66506578bb |
|
BLAKE2b-256 | 9f659e745ecaa5c600b7ca331bc08854fdcb7c478da3160f75a282f844b0ab3e |