[DOCS] SUnit test question

Stephane Ducasse ducasse at iam.unibe.ch
Thu Feb 13 13:39:14 UTC 2003


>
> I'm looking for the ultimate minimal things necessary to have a
> TestClass
>
>
> I do a subclass of TestCase named HHTestCase.
>
> I add just one method
>
> doMyTestCase
>
> 	self assert: ('Hannes' size = 6)


Normally it should work

try in the method comment
	"(self selector: #doMyTestCase) run
	or self run: #doMyTestCase"
and print it

I remove the return because test do not return value


>
>
> HHTestCase shows up in the TestRunner GUI.
> However when I run it it says
>
> 0 tests run, 0 tests passed
>
> What am I missing?
>
>
> Hannes
>
>
Prof. Dr. Stéphane DUCASSE (ducasse at iam.unibe.ch) 
http://www.iam.unibe.ch/~ducasse/
  "if you knew today was your last day on earth, what would you do
  different? ... especially if, by doing something different, today
  might not be your last day on earth" Calvin&Hobbes




More information about the Squeak-dev mailing list