Examining errors and failures with Squeak SUnit

Ned Konz ned at bike-nomad.com
Tue Aug 6 21:34:48 UTC 2002


On Tuesday 06 August 2002 01:45 pm, Ken Causey wrote:
> Is it too much to asks that the errors be listed (not just the test
> method, but the particular line that generated the error and the
> error message) in the TestRunner interface or at least in the
> Transcript?

Probably someone needs to add a "lineNumber" method to ContextPart. 
Shouldn't be too hard, it's just involved.

See Debugger>>pcRange (or the somewhat safer copy of that in the 
ProcessBrowser) for how to get the indexes into the source code; once 
you have them it's easy to get the line number.

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE




More information about the Squeak-dev mailing list