Help... I can't get tests to run, when I try I get a walkback complaining about addTest: not being understood. Below is the stack. I clearly have TestSuite>>addTest: in my image, I visually inspected that, but... Is there a way to force a recompile on TestSuite?
I am running 'Squeak3.4b-5156.image' with a few packages installed from SqueakMap. Any help would be appreciated -- on that note, I am not sure what to tell besides the following trace. This is a brand new image -- the only changes are SqueakMap and the loaded packages. I don't know when tests began to not run, since I didn't try running them at the start. But the first time I ran, I got the walkback.
Thanks. =jason
--------------------------- 22 December 2002 9:33:10 pm
VM: Win32 - Squeak3.3alpha of 24 January 2002 [latest update: #4967] Image: Squeak3.4beta [latest update: #5156]
UndefinedObject(Object)>>doesNotUnderstand: Receiver: nil Arguments and temporary variables: aMessage: a Message with selector: #addTest: and arguments: #(WATestCounter>>te...etc... Receiver's instance variables: nil
[] in WATestCounter class(TestCase class)>>addToSuite:fromMethods: Arguments and temporary variables: suite: nil testMethods: an OrderedCollection(#testIncrement #testReturnValue) selector: #testIncrement
OrderedCollection>>do: Receiver: an OrderedCollection(#testIncrement #testReturnValue) Arguments and temporary variables: aBlock: [] in WATestCounter class(TestCase class)>>addToSuite:fromMethods: index: 3 Receiver's instance variables: array: #(nil nil #testIncrement #testReturnValue nil nil nil nil nil nil) firstIndex: 3 lastIndex: 4
WATestCounter class(TestCase class)>>addToSuite:fromMethods: Receiver: WATestCounter Arguments and temporary variables: suite: nil testMethods: an OrderedCollection(#testIncrement #testReturnValue) selector: #testIncrement Receiver's instance variables: superclass: WATestCase methodDict: a MethodDictionary(#testIncrement->a CompiledMethod (3675) #testRet...etc... format: 136 instanceVariables: nil organization: ('as yet unclassified' testIncrement testReturnValue)
subclasses: nil name: #WATestCounter classPool: nil sharedPools: nil environment: a SystemDictionary(lots of globals) category: nil
--- The full stack --- UndefinedObject(Object)>>doesNotUnderstand: [] in WATestCounter class(TestCase class)>>addToSuite:fromMethods: OrderedCollection>>do: WATestCounter class(TestCase class)>>addToSuite:fromMethods: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WATestCounter class(TestCase class)>>addToSuiteFromSelectors: WATestCounter class(TestCase class)>>buildSuite WATestCounter class(TestCase class)>>suite [] in TestBrowser>>suiteCategory Array(SequenceableCollection)>>do: TestBrowser>>suiteCategory [] in TestBrowser>>runCategoryTest BlockContext>>ensure: CursorWithMask(Cursor)>>showWhile: TestBrowser>>runCategoryTest PluggableButtonMorph>>performAction [] in PluggableButtonMorph>>mouseUp: Array(SequenceableCollection)>>do: PluggableButtonMorph>>mouseUp: PluggableButtonMorph(Morph)>>handleMouseUp: MouseButtonEvent>>sentTo: PluggableButtonMorph(Morph)>>handleEvent: PluggableButtonMorph(Morph)>>handleFocusEvent: [] in HandMorph>>sendFocusEvent:to:clear: PasteUpMorph>>becomeActiveDuring: HandMorph>>sendFocusEvent:to:clear: HandMorph>>sendEvent:focus:clear: HandMorph>>sendMouseEvent: HandMorph>>handleEvent: HandMorph>>processEvents [] in WorldState>>doOneCycleNowFor: Array(SequenceableCollection)>>do: WorldState>>handsDo: WorldState>>doOneCycleNowFor: WorldState>>doOneCycleFor: PasteUpMorph>>doOneCycle [] in Project class>>spawnNewProcess [] in BlockContext>>newProcess
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.
Perhaps I should have gotten more sleep, but I don't see a nil suite here.
=jason
On Mon, 23 Dec 2002 07:48:59 -0800, "Ned Konz" ned@bike-nomad.com said:
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
squeak-dev@lists.squeakfoundation.org