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.