Skip to main content

A unittest shim to make PDB debugging of test cases easy.

Project description

Usage: python -m pdbtest [module]

(after the pattern of python -m unittest [module])

PDBtest shims the unittest test runner machinery to, when a test fails due to an exception, print some information about the TestCase and test_method, and then launch the PDB interactive debugger, affording you the opportunity to easily examine the failure.

The library also provides a PDBRunnerMixin class that you can mix in to your test runner to achieve the same effect, and a modified TestProgram that will automatically shim the runner you provide and can be used in the same way as unittest.TestProgram.

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

pdbtest-1.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Supported by

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