On Thu, Mar 19, 2009 at 2:50 AM, zpcspm <[email protected]> wrote:

>
> I would expect to see the node that contains the failing test
> to be selected in the outline after 'run-unit-tests' finishes.


Oh.  Somehow this got lost in the other details.

Leo can do this.  A test failure only needs to set an entry in g.app.

Looking at generalUnitTest.fail we see:

g.app.unitTestDict["fail"] = g.callers()

We could add another entry.  Something like:

g.app.unitTestDict["fail_p"] = c.p.copy()

And then the various run-unit-tests commands could select
g.app.unitTestDict.get("fail_p") if it exists.  This will select the *last*
failing test.

Edward

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to