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