File size: 503 Bytes
8f3f8db
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
running
runCase: aTestCase
	| result |
	result := SqueakJSTestResult new testCase: aTestCase; yourself.
	result time: (SmalltalkCI timeToRun: [
		[ aTestCase runCase ]
			on: Halt , Error, TestFailure
			do: [ :err |
				result testError: err.
				aTestCase shouldPass ifTrue: [self serializeError: result testError of: aTestCase].
				result stack: (self stackTraceString: err of: aTestCase) ] ]).
	result notifyKarma.
	(results at: aTestCase class ifAbsentPut: [ OrderedCollection new ])
		add: result