want debugger integration with selftest

Bug #391934 reported by Martin Pool on 2009-06-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
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.)

Martin Pool (mbp) on 2009-06-25
tags: added: debug 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

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.

Martin Pool (mbp) wrote :

Apparently Robert has started on this?

Changed in bzr:
assignee: Martin Pool (mbp) → nobody
status: New → Confirmed
Martin Pool (mbp) wrote :
Changed in bzr:
status: Confirmed → In Progress
assignee: nobody → Robert Collins (lifeless)
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  Edit
Everyone can see this information.

Other bug subscribers