want debugger integration with selftest
Bug #391934 reported by
Martin Pool
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Robert Collins |
Bug Description
It would be nice if bzr selftest could automatically pop into the pdb debugger: before running each (selected test) and/or after test failure.
Or is there already some easy way to get this? (Easier than editing the test source to call pdb.)
tags: | added: debug selftest |
To post a comment you must log in.
On Thu, 2009-06-25 at 04:33 +0000, Martin Pool wrote:
> Public bug reported:
>
> It would be nice if bzr selftest could automatically pop into the pdb
> debugger: before running each (selected test) and/or after test failure.
>
> Or is there already some easy way to get this? (Easier than editing the
> test source to call pdb.)
I don't think we expose this in the UI, but the python test protocol has
'debug()', which is meant to be run from pdb or similar - it is meant to
run the same tests but with the expectation that a debug will catch
exceptions rather than forwarding them to a reporter object.
I think a better way to structure it would be to have a reporter than
uses pdb.post_mortem, myself.
-Rob