want debugger integration with selftest

Bug #391934 reported by Martin Pool
6
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: debug selftest
Martin Pool (mbp)
tags: added: debug selftest
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 391934] [NEW] want debugger integration with selftest

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

Revision history for this message
Martin Pool (mbp) wrote :

Right, you can use .debug but it apparently doesn't actually take care of running the tests.

This could actually be put in testtools with only glue in bzr.

Revision history for this message
Martin Pool (mbp) wrote :

Apparently Robert has started on this?

Changed in bzr:
assignee: Martin Pool (mbp) → nobody
status: New → Confirmed
Revision history for this message
Martin Pool (mbp) wrote :
Changed in bzr:
status: Confirmed → In Progress
assignee: nobody → Robert Collins (lifeless)
Revision history for this message
Robert Collins (lifeless) wrote :

Fixed ages back, choosing 2.0.6 as a convenient proxy for 'well it works now'.

Changed in bzr:
milestone: none → 2.0.6
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.