author | Claus Gittinger <cg@exept.de> |
Sun, 27 May 2012 12:51:18 +0200 | |
changeset 444 | c1f0f17a9e21 |
parent 438 | ceb3517dcae7 |
child 446 | 4d4b49d09e2f |
permissions | -rw-r--r-- |
0 | 1 |
"{ Package: 'stx:goodies/sunit' }" |
2 |
||
3 |
Object subclass:#TestResult |
|
347 | 4 |
instanceVariableNames:'name timestamp failures errors passed outcome' |
5 |
classVariableNames:'DefaultClass' |
|
104 | 6 |
poolDictionaries:'' |
7 |
category:'SUnit-Base' |
|
8 |
! |
|
9 |
||
222 | 10 |
TestResult comment:'' |
0 | 11 |
! |
12 |
||
336 | 13 |
!TestResult class methodsFor:'documentation'! |
14 |
||
15 |
documentation |
|
16 |
" |
|
17 |
runInfoPerTest: |
|
18 |
will keep additional info for a testCase run: |
|
19 |
startTime, endTime, backtrace (if fail or error) and collectedStdout |
|
20 |
" |
|
21 |
! ! |
|
14 | 22 |
|
222 | 23 |
!TestResult class methodsFor:'instance creation'! |
24 |
||
25 |
new |
|
405 | 26 |
|
27 |
self sunitName == #TestCase ifTrue:[ |
|
28 |
^ self defaultResultClass basicNew initialize. |
|
29 |
] ifFalse:[ |
|
30 |
^ self basicNew initialize |
|
31 |
]. |
|
347 | 32 |
|
405 | 33 |
" |
34 |
TestResult new. |
|
35 |
TestResultForRunWithDebug new. |
|
36 |
" |
|
37 |
||
38 |
"Modified (comment): / 20-08-2011 / 17:34:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
347 | 39 |
! ! |
40 |
||
444 | 41 |
!TestResult class methodsFor:'*Orca-Core'! |
42 |
||
43 |
requiredClasses |
|
44 |
||
45 |
^ { TimeStamp } |
|
46 |
! ! |
|
47 |
||
347 | 48 |
!TestResult class methodsFor:'accessing'! |
49 |
||
50 |
defaultResultClass |
|
51 |
DefaultClass notNil ifTrue:[^DefaultClass]. |
|
52 |
||
53 |
((Smalltalk respondsTo: #isSmalltalkX) and:[Smalltalk isSmalltalkX]) ifTrue:[ |
|
54 |
DefaultClass := TestResultStX. |
|
55 |
^DefaultClass |
|
56 |
]. |
|
57 |
"Add more dialects here, if you want..." |
|
58 |
||
59 |
"Default" |
|
60 |
DefaultClass := self. |
|
61 |
||
62 |
"Created: / 16-08-2011 / 15:02:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
222 | 63 |
! ! |
64 |
||
68 | 65 |
!TestResult class methodsFor:'exceptions'! |
0 | 66 |
|
67 |
error |
|
104 | 68 |
^self exError |
0 | 69 |
! |
70 |
||
71 |
exError |
|
104 | 72 |
^SUnitNameResolver errorObject |
0 | 73 |
! |
74 |
||
75 |
failure |
|
104 | 76 |
^TestFailure |
77 |
! |
|
0 | 78 |
|
104 | 79 |
resumableFailure |
80 |
^ResumableTestFailure |
|
0 | 81 |
! |
82 |
||
222 | 83 |
signalErrorWith: aString |
84 |
self error sunitSignalWith: aString |
|
85 |
! |
|
0 | 86 |
|
222 | 87 |
signalFailureWith: aString |
88 |
self failure sunitSignalWith: aString |
|
0 | 89 |
! ! |
90 |
||
68 | 91 |
!TestResult methodsFor:'accessing'! |
0 | 92 |
|
93 |
defects |
|
104 | 94 |
^OrderedCollection new |
95 |
addAll: self errors; |
|
96 |
addAll: self failures; yourself |
|
0 | 97 |
! |
98 |
||
99 |
errorCount |
|
104 | 100 |
|
347 | 101 |
^self errorOutcomes size |
102 |
||
103 |
"Modified: / 16-08-2011 / 15:58:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
104 |
! |
|
105 |
||
106 |
errorOutcomes |
|
107 |
||
108 |
errors isNil ifTrue: [errors := OrderedCollection new]. |
|
109 |
^errors |
|
110 |
||
111 |
"Created: / 16-08-2011 / 15:55:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
0
diff
changeset
|
112 |
! |
0 | 113 |
|
114 |
errors |
|
347 | 115 |
|
116 |
errors isNil ifTrue: [^#()]. |
|
117 |
^errors collect:[:outcome|outcome testCase] |
|
118 |
||
119 |
"Modified: / 16-08-2011 / 15:54:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
0
diff
changeset
|
120 |
! |
0 | 121 |
|
300
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
122 |
exceptions |
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
123 |
|
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
124 |
"Returns a set of exceptions to be handled. Bu default, |
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
125 |
failure and generic error is handled. This method may |
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
126 |
be overriden by custom TestResult subclasses to add more. |
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
127 |
For example, a 'self halt' is not handled by default |
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
128 |
exceptions set" |
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
129 |
|
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
130 |
^self class failure , self class error |
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
131 |
|
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
132 |
"Created: / 03-08-2011 / 14:11:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
133 |
! |
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
134 |
|
0 | 135 |
failureCount |
136 |
||
347 | 137 |
^self failureOutcomes size |
138 |
||
139 |
"Modified: / 16-08-2011 / 15:58:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
140 |
! |
|
141 |
||
142 |
failureOutcomes |
|
143 |
||
144 |
failures isNil ifTrue: [failures := Set new]. |
|
145 |
^failures |
|
146 |
||
147 |
"Created: / 16-08-2011 / 15:56:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
0 | 148 |
! |
149 |
||
150 |
failures |
|
347 | 151 |
"We use a Set, not an OrderedCollection as #errors and #passed do, because a resumable test failure in a loop can raise many failures against the same test. In current Sunit UIs, this could result in bizarre test count reporting (-27 tests run, and suchlike). This will be reviewed." |
222 | 152 |
|
347 | 153 |
failures isNil ifTrue: [^#()]. |
154 |
^failures collect:[:outcome|outcome testCase] |
|
155 |
||
156 |
"Modified: / 16-08-2011 / 15:54:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
222 | 157 |
! |
158 |
||
159 |
name |
|
160 |
^ name |
|
161 |
! |
|
162 |
||
163 |
name:aString |
|
164 |
name := aString. |
|
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
0
diff
changeset
|
165 |
! |
0 | 166 |
|
418 | 167 |
outcomes |
168 |
||
169 |
^OrderedCollection new |
|
170 |
addAll: failures; |
|
171 |
addAll: errors; |
|
172 |
addAll: passed; |
|
173 |
yourself |
|
174 |
||
175 |
"Created: / 20-08-2011 / 14:00:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
176 |
! |
|
177 |
||
178 |
outcomesDo: aBlock |
|
179 |
||
180 |
failures notNil ifTrue:[failures do: aBlock]. |
|
181 |
errors notNil ifTrue:[errors do: aBlock]. |
|
182 |
passed notNil ifTrue:[passed do: aBlock]. |
|
183 |
||
184 |
"Created: / 20-08-2011 / 14:01:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
185 |
! |
|
186 |
||
53 | 187 |
passed |
434 | 188 |
passed isNil ifTrue: [ |
189 |
"/ cg: exposed and added to (see TestRunnerEmbedded>>debug) |
|
190 |
passed := OrderedCollection new. |
|
191 |
^ passed. |
|
192 |
]. |
|
347 | 193 |
^passed collect:[:outcome|outcome testCase] |
194 |
||
195 |
"Modified: / 16-08-2011 / 15:54:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
434 | 196 |
"Modified: / 07-11-2011 / 11:19:57 / cg" |
53 | 197 |
! |
198 |
||
199 |
passedCount |
|
200 |
||
347 | 201 |
^self passedOutcomes size |
202 |
||
203 |
"Modified: / 16-08-2011 / 15:58:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
204 |
! |
|
205 |
||
206 |
passedOutcomes |
|
207 |
||
208 |
passed isNil ifTrue: [passed := OrderedCollection new]. |
|
209 |
^passed |
|
210 |
||
211 |
"Created: / 16-08-2011 / 15:56:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
53 | 212 |
! |
213 |
||
0 | 214 |
runCount |
53 | 215 |
|
104 | 216 |
^self passedCount + self failureCount + self errorCount |
53 | 217 |
! |
218 |
||
347 | 219 |
testOutcomes |
220 |
||
221 |
^(OrderedCollection new: self runCount) |
|
222 |
addAll: self passedOutcomes; |
|
223 |
addAll: self errorOutcomes; |
|
224 |
addAll: self failureOutcomes; |
|
225 |
yourself |
|
226 |
||
227 |
"Created: / 16-08-2011 / 16:42:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
228 |
! |
|
229 |
||
53 | 230 |
tests |
104 | 231 |
|
232 |
^(OrderedCollection new: self runCount) |
|
233 |
addAll: self passed; |
|
234 |
addAll: self errors; |
|
235 |
addAll: self failures; |
|
236 |
yourself |
|
222 | 237 |
! |
238 |
||
239 |
timestamp |
|
240 |
^ timestamp |
|
270 | 241 |
! |
242 |
||
243 |
timestamp:something |
|
244 |
timestamp := something. |
|
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
0
diff
changeset
|
245 |
! ! |
0 | 246 |
|
438 | 247 |
!TestResult methodsFor:'adding / removing'! |
222 | 248 |
|
347 | 249 |
addError:testcase detail:detail |
250 |
"Called when a test outcome is error. testCase |
|
251 |
is the errorneous testcase, detail is platform |
|
252 |
specific object describing the error. Actually, |
|
253 |
on all platforms exept GemStone, detail is an instance |
|
254 |
of an exception that caused the error" |
|
255 |
"JV2011-08-03: TODO: Validate the comment above with GS, |
|
256 |
possibly change name to 'exception'" |
|
300
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
257 |
|
418 | 258 |
|
347 | 259 |
outcome result: #error. |
418 | 260 |
outcome remember. |
347 | 261 |
^ self errorOutcomes add:outcome. |
300
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
262 |
|
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
263 |
"Created: / 03-08-2011 / 13:50:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
318
96ce5904bba6
added: #rememberException:detail:
Claus Gittinger <cg@exept.de>
parents:
316
diff
changeset
|
264 |
"Modified: / 06-08-2011 / 09:46:41 / cg" |
418 | 265 |
"Modified: / 20-08-2011 / 12:46:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
222 | 266 |
! |
267 |
||
347 | 268 |
addFailure:testcase detail:detail |
269 |
"Called when a test fails. testCase is the failed |
|
270 |
testcase, detail is platform specific object describing |
|
271 |
the failure. Actually, on all platforms exept GemStone, |
|
272 |
detail is an instance of an exception that caused the failure" |
|
273 |
"JV2011-08-03: TODO: Validate the comment above with GS, |
|
274 |
possibly change name to 'exception'" |
|
418 | 275 |
|
347 | 276 |
"Special handling here, because failures can be resumable" |
277 |
self failureOutcomes do:[:outcome | |
|
278 |
outcome testCase = testcase ifTrue:[ |
|
279 |
^ self |
|
280 |
]. |
|
281 |
]. |
|
282 |
outcome result: #fail. |
|
418 | 283 |
outcome remember. |
347 | 284 |
^ self failureOutcomes add: outcome |
300
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
285 |
|
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
286 |
"Created: / 03-08-2011 / 13:53:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
318
96ce5904bba6
added: #rememberException:detail:
Claus Gittinger <cg@exept.de>
parents:
316
diff
changeset
|
287 |
"Modified: / 06-08-2011 / 09:55:17 / cg" |
418 | 288 |
"Modified: / 20-08-2011 / 12:46:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
318
96ce5904bba6
added: #rememberException:detail:
Claus Gittinger <cg@exept.de>
parents:
316
diff
changeset
|
289 |
! |
96ce5904bba6
added: #rememberException:detail:
Claus Gittinger <cg@exept.de>
parents:
316
diff
changeset
|
290 |
|
418 | 291 |
addPass:testCase |
292 |
||
347 | 293 |
outcome result: #pass. |
418 | 294 |
outcome remember. |
347 | 295 |
^ self passedOutcomes add: outcome |
325
76240d956e7d
changed: #rememberExceptionIn:detail:
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
296 |
|
418 | 297 |
"Modified: / 20-08-2011 / 12:44:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
438 | 298 |
! |
299 |
||
300 |
remove: aTestCase |
|
301 |
"Removes an outcome for given testcase, if any. |
|
302 |
Use with care." |
|
303 |
||
304 |
| remover | |
|
305 |
||
306 |
remover := [:outcomes| |
|
307 |
| o | |
|
308 |
||
309 |
outcomes notNil ifTrue:[ |
|
310 |
o := outcomes detect:[:each|each testCase == aTestCase] ifNone: [nil]. |
|
311 |
o notNil ifTrue:[outcomes remove: o. ^self]. |
|
312 |
]. |
|
313 |
]. |
|
314 |
||
315 |
remover value: errors. |
|
316 |
remover value: failures. |
|
317 |
remover value: passed. |
|
318 |
||
319 |
"Created: / 16-01-2012 / 20:36:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
222 | 320 |
! ! |
321 |
||
322 |
!TestResult methodsFor:'deprecated'! |
|
323 |
||
324 |
correctCount |
|
325 |
"deprecated - use #passedCount" |
|
326 |
||
327 |
^self passedCount |
|
328 |
! ! |
|
329 |
||
330 |
!TestResult methodsFor:'initialize-release'! |
|
0 | 331 |
|
332 |
initialize |
|
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
0
diff
changeset
|
333 |
! ! |
0 | 334 |
|
347 | 335 |
!TestResult methodsFor:'outcome'! |
336 |
||
337 |
createOutcome |
|
338 |
||
339 |
^TestCaseOutcome new. |
|
0 | 340 |
|
347 | 341 |
"Created: / 16-08-2011 / 17:14:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
342 |
! |
|
297
87eb8f911bcf
changed: #exceptionInfoStringFor:in:
Claus Gittinger <cg@exept.de>
parents:
292
diff
changeset
|
343 |
|
347 | 344 |
rememberEndTime |
345 |
||
346 |
^nil |
|
292 | 347 |
|
347 | 348 |
"Created: / 16-08-2011 / 17:31:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
349 |
! |
|
350 |
||
351 |
rememberException:detail |
|
352 |
||
353 |
"Created: / 16-08-2011 / 17:35:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
354 |
! |
|
292 | 355 |
|
347 | 356 |
rememberStartTime |
357 |
||
358 |
^nil |
|
292 | 359 |
|
347 | 360 |
"Created: / 16-08-2011 / 17:31:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
361 |
! ! |
|
362 |
||
363 |
!TestResult methodsFor:'printing'! |
|
292 | 364 |
|
0 | 365 |
printOn: aStream |
104 | 366 |
|
367 |
aStream |
|
368 |
nextPutAll: self runCount printString; |
|
369 |
nextPutAll: ' run, '; |
|
370 |
nextPutAll: self correctCount printString; |
|
371 |
nextPutAll: ' passed, '; |
|
372 |
nextPutAll: self failureCount printString; |
|
373 |
nextPutAll: ' failed, '; |
|
374 |
nextPutAll: self errorCount printString; |
|
375 |
nextPutAll: ' error'. |
|
376 |
||
377 |
self errorCount ~= 1 |
|
378 |
ifTrue: [aStream nextPut: $s] |
|
0 | 379 |
! ! |
380 |
||
68 | 381 |
!TestResult methodsFor:'running'! |
0 | 382 |
|
303 | 383 |
performCase:aTestCase |
384 |
"Actually performs the case. The TestCase>>runCase itself calls |
|
300
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
385 |
a setUp/tearDown methods. The possible error/failure is handled |
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
386 |
in TestResult>>runCase:. This method is meant to be overriden by |
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
387 |
custom TestResult subclasses." |
303 | 388 |
|
300
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
389 |
aTestCase runCase. |
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
390 |
|
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
391 |
"Modified: / 02-08-2011 / 18:10:09 / cg" |
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
392 |
"Created: / 03-08-2011 / 14:02:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
393 |
! |
570aed392231
TestResult refactoring - now it allow for more fine-grained customization
vrany
parents:
297
diff
changeset
|
394 |
|
303 | 395 |
runCase:aTestCase |
316 | 396 |
"run a testcase, catching exceptions" |
397 |
||
429 | 398 |
self runCase:aTestCase debugged:false |
399 |
||
400 |
"Modified: / 16-08-2011 / 17:35:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
401 |
"Modified: / 21-08-2011 / 17:48:28 / cg" |
|
402 |
! |
|
403 |
||
404 |
runCase:aTestCase debugged:debugged |
|
405 |
"run a testcase, debugging exceptions" |
|
406 |
||
438 | 407 |
|
408 |
[ |
|
409 |
[ |
|
410 |
outcome := self createOutcome. |
|
411 |
outcome testCase: aTestCase. |
|
412 |
self rememberStartTime. |
|
413 |
self performCase:aTestCase. |
|
414 |
self rememberEndTime. |
|
415 |
self addPass:aTestCase. |
|
416 |
outcome := nil. |
|
417 |
] sunitOn:self exceptions do: [:ex | |
|
418 |
self rememberEndTime. |
|
419 |
self rememberException: ex. |
|
444 | 420 |
(AbortSignal accepts: ex signal) ifTrue:[ex reject]. |
438 | 421 |
debugged ifTrue:[ ex reject ]. |
422 |
ex sunitAnnounce:aTestCase toResult:self. |
|
423 |
]. |
|
424 |
] sunitOn: self exceptions do:[:ex| |
|
444 | 425 |
(AbortSignal accepts: ex signal) ifTrue:[ex reject]. |
438 | 426 |
self remove: aTestCase. |
431 | 427 |
debugged ifTrue:[ ex reject ]. |
438 | 428 |
ex sunitAnnounce:aTestCase toResult:self. |
429 |
] |
|
292 | 430 |
|
429 | 431 |
"Created: / 21-08-2011 / 17:48:19 / cg" |
438 | 432 |
"Modified: / 16-01-2012 / 20:37:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
444 | 433 |
"Modified: / 27-05-2012 / 11:02:07 / cg" |
0 | 434 |
! ! |
435 |
||
68 | 436 |
!TestResult methodsFor:'testing'! |
0 | 437 |
|
53 | 438 |
hasErrors |
439 |
||
104 | 440 |
^self errors size > 0 |
53 | 441 |
! |
442 |
||
443 |
hasFailures |
|
444 |
||
104 | 445 |
^self failures size > 0 |
53 | 446 |
! |
447 |
||
0 | 448 |
hasPassed |
104 | 449 |
|
450 |
^self hasErrors not and: [self hasFailures not] |
|
53 | 451 |
! |
452 |
||
453 |
isError: aTestCase |
|
454 |
||
104 | 455 |
^self errors includes: aTestCase |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
0
diff
changeset
|
456 |
! |
0 | 457 |
|
458 |
isFailure: aTestCase |
|
104 | 459 |
^self failures includes: aTestCase |
53 | 460 |
! |
461 |
||
462 |
isPassed: aTestCase |
|
463 |
||
104 | 464 |
^self passed includes: aTestCase |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
0
diff
changeset
|
465 |
! ! |
0 | 466 |
|
14 | 467 |
!TestResult class methodsFor:'documentation'! |
468 |
||
469 |
version |
|
444 | 470 |
^ '$Header: /cvs/stx/stx/goodies/sunit/TestResult.st,v 1.40 2012-05-27 10:51:18 cg Exp $' |
297
87eb8f911bcf
changed: #exceptionInfoStringFor:in:
Claus Gittinger <cg@exept.de>
parents:
292
diff
changeset
|
471 |
! |
87eb8f911bcf
changed: #exceptionInfoStringFor:in:
Claus Gittinger <cg@exept.de>
parents:
292
diff
changeset
|
472 |
|
87eb8f911bcf
changed: #exceptionInfoStringFor:in:
Claus Gittinger <cg@exept.de>
parents:
292
diff
changeset
|
473 |
version_CVS |
444 | 474 |
^ '$Header: /cvs/stx/stx/goodies/sunit/TestResult.st,v 1.40 2012-05-27 10:51:18 cg Exp $' |
222 | 475 |
! |
476 |
||
477 |
version_SVN |
|
478 |
^ '§Id: TestResult.st 205 2010-09-11 15:23:01Z vranyj1 §' |
|
14 | 479 |
! ! |