Python Unit Testing: Automatically Running the Debugger when a test fails

I think what you are looking for is nose. It works like a test runner for unittest.

You can drop into the debugger on errors, with the following command:

nosetests --pdb

Leave a Comment