Trouble running tests

Ned Konz ned at bike-nomad.com
Mon Dec 23 15:48:59 UTC 2002


On Sunday 22 December 2002 06:47 pm, Jason Rogers wrote:
> WATestCounter class(TestCase class)>>suite
> [] in TestBrowser>>suiteCategory
> Array(SequenceableCollection)>>do:
> TestBrowser>>suiteCategory

The problem is that suite is nil.

This runs fine in a stock image in TestRunner if I just load Seaside 
and run the WATestCounter tests.

It runs fine from TestBrowser if I do Run(Class) or Run(Category).

However, if I then load TestRunnerEnhancements, it breaks.

The problem is with TestCase>>buildSuite, which is a method that was 
written by someone else and I included in TestRunnerEnhancements 
without looking carefully enough at.

buildSuite
	| suite |
	suite _ TestSuite new.
	^ self isAbstract
		ifTrue: [
			suite name: self name asString.
			self allSubclasses
				do: [:each | each isAbstract
						ifFalse: [each addToSuiteFromSelectors: suite]].
			suite]
		ifFalse: [self addToSuiteFromSelectors: suite]

I notice that I also still haven't fixed the window colors in 
TestRunner yet.

Anyway, I'll try to update this, but I have to get up to Vancouver 
today, and may not have a chance.

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




More information about the Squeak-dev mailing list