https://github.com/pytest-dev/pytest-bpdb
pytest plugin for dropping to bpdb on test failures
https://github.com/pytest-dev/pytest-bpdb
Last synced: 3 months ago
JSON representation
pytest plugin for dropping to bpdb on test failures
- Host: GitHub
- URL: https://github.com/pytest-dev/pytest-bpdb
- Owner: pytest-dev
- Created: 2015-01-18T16:19:10.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-19T08:06:22.000Z (almost 11 years ago)
- Last Synced: 2025-10-08T00:03:23.849Z (3 months ago)
- Language: Python
- Size: 141 KB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
===========
pytest-bpdb
===========
A pytest_ plugin for dropping to bpdb_ on test failures.
.. _pytest: http://pytest.org
.. _bpdb: http://docs.bpython-interpreter.org/bpdb.html
.. image:: https://travis-ci.org/slafs/pytest-bpdb.png?branch=master
:target: https://travis-ci.org/slafs/pytest-bpdb
.. image:: https://badge.fury.io/py/pytest-bpdb.png
:target: http://badge.fury.io/py/pytest-bpdb
.. image:: https://pypip.in/d/pytest-bpdb/badge.png
:target: https://pypi.python.org/pypi/pytest-bpdb
This plugin is almost entirely based on built-in `pytest pdb plugin`_
and `pytest-ipdb`_ plugin
.. _pytest pdb plugin: https://bitbucket.org/hpk42/pytest/src/d942d16857f3fd225d25bc21aa6531449163528c/_pytest/pdb.py?at=default
.. _pytest-ipdb: https://github.com/mverteuil/pytest-ipdb
Installation
============
To install the plugin run::
pip install pytest-bpdb
or use a development version::
pip install -e git+git://github.com/slafs/pytest-bpdb
Usage
=====
To enable a BPython debugger (bpdb) on pytest failures use a ``--bpdb`` option.
For example::
py.test --bpdb tests/