Viewing Failures in sUnit's TestRunner

Bryce Kampjes bryce at kampjes.demon.co.uk
Sat May 3 19:02:21 UTC 2003


Ned Konz writes:
 > On Friday 02 May 2003 03:23 pm, Bryce Kampjes wrote:
 > > It's good practice in Smalltalk to write code inside the
 > > debugger. Often I'll write a test, it fails, knowing that I'm going
 > > to extend an existing method, I add a "self halt." to the start of
 > > it. Rerunning the test, it stops at the halt in a debugger. Then I
 > > add the new code inside the debugger. This way I can inspect the
 > > current state and check it's what I think it should be. It also
 > > checks that the method was really used by that test.
 > 
 > There is a package on SqueakMap that lets you set breakpoints on entry 
 > without changing the source.
 > 
 > It's called "Breakpoint support".

Sometimes I get very conservative about my development
environment. Normally when I'm starting to get afraid I've corrupted
the image again.

But thanks for that, sounds very useful. I'll look at it when I'm
building my next development image.

Bryce



More information about the Squeak-dev mailing list