author | Claus Gittinger <cg@exept.de> |
Thu, 13 Dec 2001 23:00:46 +0100 | |
changeset 48 | 2549002b7179 |
parent 43 | d46c62bd3c4e |
child 51 | 5cc990c89e19 |
permissions | -rw-r--r-- |
0 | 1 |
"{ Package: 'stx:goodies/sunit' }" |
2 |
||
3 |
ApplicationModel subclass:#TestRunner |
|
30 | 4 |
instanceVariableNames:'result lastPass defect allDefects defectMenu details mode |
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
5 |
scriptModel script numberOfTestsToRun testsWhichFailed |
39 | 6 |
testsWhichPassed categoryModel category' |
30 | 7 |
classVariableNames:'' |
8 |
poolDictionaries:'' |
|
9 |
category:'SUnit-UI' |
|
0 | 10 |
! |
11 |
||
43 | 12 |
!TestRunner class methodsFor:'documentation'! |
13 |
||
14 |
documentation |
|
15 |
" |
|
16 |
This GUI is based on SUnit2.7 and |
|
17 |
was ported to ST/X by Samuel S. Schuster (as 2.7) (thanks, indeed) |
|
18 |
||
19 |
It was slightly enhanced by adding a rerun-defects, browse and |
|
20 |
a category selector (to minor revision 2.7d, in the meantime) |
|
21 |
" |
|
22 |
! ! |
|
11 | 23 |
|
8 | 24 |
!TestRunner class methodsFor:'defaults'! |
25 |
||
42 | 26 |
colorForFailedTests |
27 |
^ Color red |
|
28 |
! |
|
29 |
||
30 |
colorForPassedTests |
|
31 |
^ Color green darkened |
|
32 |
! |
|
33 |
||
8 | 34 |
defaultIcon |
35 |
"This resource specification was automatically generated |
|
36 |
by the ImageEditor of ST/X." |
|
37 |
||
38 |
"Do not manually edit this!! If it is corrupted, |
|
39 |
the ImageEditor may not be able to read the specification." |
|
40 |
||
41 |
" |
|
42 |
self defaultIcon inspect |
|
43 |
ImageEditor openOnClass:self andSelector:#defaultIcon |
|
44 |
" |
|
45 |
||
46 |
<resource: #image> |
|
47 |
||
48 |
^Icon |
|
30 | 49 |
constantNamed:#'TestRunner class defaultIcon' |
50 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
8 | 51 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@O??C???????C?<O?0@@??<O??????<O?0??@@@@@@@@@@@@@@@@@@@@@BH"H"H" |
52 |
H"H"H#L3L0@@H"H"H"H"H"H#L3L3@@@"H"H"H"H"H#L3L3L@@BH"H"H"H"H#L3L3L0@@H"H"H"H@@@L1L3L3@@@"H"H"HO??<A@3L3L@@BH"H"HO???1@3L3 |
|
53 |
L0@@H"H"HO???1@@L3L3@@@"H"H <_?1@O@3L3L@@BH"H"C0G1@O<CL3L0@@H"H"HO@A@O?0L3L3@@@"H"H ?0@O??@3L3L@@BH"H#LO<O??@3L3L0@@H"H# |
|
54 |
L3C???@3L3L3@@@"H#L3L0@@@3L3L3L@@BH#L3L3L3L3L3L3L0@@H#L3L3L3L3L3L3L3@@@#L3L3L3L3L3L3L3L@@CL3L3L3L3L3L3L3L0@@@@@@@@@@@@@@ |
|
55 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
56 |
@@@@@@@@@@A???? _???8G???>A???? _???8G???>A???? _???8G???>A???? _???8G???>A???? _???8G???>A???? _???8G???>A???? _???8G?? |
|
57 |
?>A???? _???8G???>@@@@@@@@@@@@@a') ; yourself); yourself] |
|
58 |
! ! |
|
59 |
||
0 | 60 |
!TestRunner class methodsFor:'interface specs'! |
61 |
||
48 | 62 |
flyByHelpSpec |
63 |
<resource: #help> |
|
64 |
||
65 |
^super flyByHelpSpec addPairsFrom:#( |
|
66 |
||
67 |
#refreshSuitesButton |
|
68 |
'Refresh List of Tests' |
|
69 |
||
70 |
#suitesCategoryList |
|
71 |
'Test Categories' |
|
72 |
||
73 |
#suiteSelection |
|
74 |
'Selected Test' |
|
75 |
||
76 |
#runButton |
|
77 |
'Run selected Test' |
|
78 |
||
79 |
#rerunDefectsButton |
|
80 |
'ReRun Defects Only' |
|
81 |
||
82 |
#runAllButton |
|
83 |
'Run all Tests from Category' |
|
84 |
||
85 |
#defectsList |
|
86 |
'Failures' |
|
87 |
||
88 |
#browseButton |
|
89 |
'Browse Test' |
|
90 |
||
91 |
#debugButton |
|
92 |
'Debug Failed Test' |
|
93 |
||
94 |
) |
|
95 |
! |
|
96 |
||
0 | 97 |
windowSpec |
98 |
"This resource specification was automatically generated |
|
99 |
by the UIPainter of ST/X." |
|
100 |
||
101 |
"Do not manually edit this!! If it is corrupted, |
|
102 |
the UIPainter may not be able to read the specification." |
|
103 |
||
104 |
" |
|
105 |
UIPainter new openOnClass:TestRunner andSelector:#windowSpec |
|
106 |
TestRunner new openInterface:#windowSpec |
|
107 |
TestRunner open |
|
108 |
" |
|
109 |
||
110 |
<resource: #canvas> |
|
111 |
||
112 |
^ |
|
113 |
#(#FullSpec |
|
39 | 114 |
#name: #windowSpec |
115 |
#window: |
|
0 | 116 |
#(#WindowSpec |
43 | 117 |
#label: 'SUnit Camp Smalltalk 2.7d TestRunner' |
118 |
#name: 'SUnit Camp Smalltalk 2.7d TestRunner' |
|
39 | 119 |
#min: #(#Point 362 122) |
120 |
#bounds: #(#Rectangle 177 150 670 325) |
|
121 |
#icon: #defaultIcon |
|
122 |
) |
|
123 |
#component: |
|
0 | 124 |
#(#SpecCollection |
39 | 125 |
#collection: #( |
126 |
#(#ActionButtonSpec |
|
127 |
#label: 'Refresh' |
|
128 |
#name: 'Button3' |
|
129 |
#layout: #(#LayoutFrame 0 0 0 0 75 0 48 0) |
|
130 |
#model: #refreshSuites |
|
48 | 131 |
#activeHelpKey: #refreshSuitesButton |
39 | 132 |
) |
133 |
#(#MenuButtonSpec |
|
134 |
#name: 'category' |
|
135 |
#layout: #(#LayoutFrame 76 0 0 0 -216 1 24 0) |
|
136 |
#model: #category |
|
137 |
#menu: #categoryList |
|
48 | 138 |
#activeHelpKey: #suitesCategoryList |
39 | 139 |
) |
140 |
#(#MenuButtonSpec |
|
48 | 141 |
#label: '' |
39 | 142 |
#name: #tests |
143 |
#layout: #(#LayoutFrame 76 0 24 0 -216 1 48 0) |
|
144 |
#model: #script |
|
145 |
#menu: #scriptModel |
|
146 |
#useIndex: true |
|
48 | 147 |
#activeHelpKey: #suiteSelection |
39 | 148 |
) |
149 |
#(#ActionButtonSpec |
|
150 |
#label: 'Run' |
|
151 |
#name: 'Button1' |
|
152 |
#layout: #(#LayoutFrame -215 1 0 0 -160 1 48 0) |
|
153 |
#model: #runTests |
|
154 |
#enableChannel: #enableRunButton |
|
48 | 155 |
#activeHelpKey: #runButton |
39 | 156 |
) |
157 |
#(#ActionButtonSpec |
|
158 |
#label: 'ReRun Defects' |
|
159 |
#name: 'Button5' |
|
160 |
#layout: #(#LayoutFrame -159 1 0 0 -57 1 48 0) |
|
161 |
#model: #runDefects |
|
162 |
#enableChannel: #enableRunDefectsButton |
|
48 | 163 |
#activeHelpKey: #rerunDefectsButton |
39 | 164 |
) |
165 |
#(#ActionButtonSpec |
|
166 |
#label: 'Run All' |
|
167 |
#name: 'Button2' |
|
168 |
#layout: #(#LayoutFrame -56 1 0 0 0 1 48 0) |
|
169 |
#model: #runAllTests |
|
48 | 170 |
#activeHelpKey: #runAllButton |
39 | 171 |
) |
172 |
#(#ProgressIndicatorSpec |
|
173 |
#name: 'ProgressIndicator1' |
|
174 |
#layout: #(#LayoutFrame 0 0.0 49 0 0 1.0 60 0) |
|
175 |
#visibilityChannel: #percentageIndicatorVisible |
|
176 |
#model: #percentageDone |
|
177 |
#foregroundColor: #(#Color 32.9992 32.9992 0.0) |
|
178 |
#backgroundColor: #(#Color 66.9993 66.9993 0.0) |
|
179 |
#showPercentage: false |
|
180 |
) |
|
181 |
#(#LabelSpec |
|
182 |
#label: 'N/A' |
|
183 |
#name: 'mode' |
|
184 |
#layout: #(#LayoutFrame 0 0 49 0 0 1 0 0.5) |
|
185 |
#style: #(#FontDescription #Arial #bold #roman 14) |
|
186 |
#labelChannel: #mode |
|
187 |
) |
|
188 |
#(#LabelSpec |
|
189 |
#label: '...' |
|
190 |
#name: 'details' |
|
191 |
#layout: #(#LayoutFrame 0 0 0 0.5 0 1 -25 1) |
|
192 |
#labelChannel: #details |
|
193 |
) |
|
194 |
#(#MenuButtonSpec |
|
195 |
#name: #defects |
|
196 |
#layout: #(#LayoutFrame 0 0 -24 1 -152 1 0 1) |
|
197 |
#isOpaque: true |
|
198 |
#flags: 40 |
|
199 |
#model: #selectionHolder |
|
200 |
#initiallyDisabled: true |
|
201 |
#enableChannel: #enableDefectsList |
|
48 | 202 |
#activeHelpKey: #defectsList |
39 | 203 |
#menu: #defectMenu |
204 |
) |
|
205 |
#(#ActionButtonSpec |
|
206 |
#label: 'Browse' |
|
207 |
#name: 'Button4' |
|
208 |
#layout: #(#LayoutFrame -151 1 -24 1 -76 1 0 1) |
|
209 |
#model: #browseSelectedTestCase |
|
210 |
#initiallyDisabled: true |
|
211 |
#enableChannel: #enableRunButton |
|
48 | 212 |
#activeHelpKey: #browseButton |
39 | 213 |
) |
214 |
#(#ActionButtonSpec |
|
215 |
#label: 'Debug' |
|
216 |
#name: 'Button6' |
|
217 |
#layout: #(#LayoutFrame -75 1 -24 1 0 1 0 1) |
|
218 |
#model: #debugSelectedFailure |
|
219 |
#initiallyDisabled: true |
|
220 |
#enableChannel: #enableDebugButton |
|
48 | 221 |
#activeHelpKey: #debugButton |
39 | 222 |
) |
223 |
) |
|
0 | 224 |
|
39 | 225 |
) |
0 | 226 |
) |
227 |
! ! |
|
228 |
||
229 |
!TestRunner class methodsFor:'opening'! |
|
230 |
||
231 |
open |
|
232 |
||
30 | 233 |
^super open |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
234 |
! |
5 | 235 |
|
236 |
openOnTestCase:aTestCaseSubclass |
|
237 |
|runner idx| |
|
238 |
||
239 |
runner := self new. |
|
240 |
runner open. |
|
241 |
runner window waitUntilVisible. |
|
15 | 242 |
|
5 | 243 |
idx := runner scriptModel value indexOf:aTestCaseSubclass name. |
244 |
runner script value:idx. |
|
245 |
||
246 |
" |
|
247 |
self openOnTestCase:CompilerTest |
|
248 |
" |
|
249 |
! ! |
|
0 | 250 |
|
251 |
!TestRunner class methodsFor:'plugIn spec'! |
|
252 |
||
253 |
aspectSelectors |
|
254 |
"This resource specification was automatically generated |
|
255 |
by the UIPainter of ST/X." |
|
256 |
||
257 |
"Do not manually edit this. If it is corrupted, |
|
258 |
the UIPainter may not be able to read the specification." |
|
259 |
||
260 |
"Return a description of exported aspects; |
|
261 |
these can be connected to aspects of an embedding application |
|
262 |
(if this app is embedded in a subCanvas)." |
|
263 |
||
264 |
^ #( |
|
39 | 265 |
#script |
0 | 266 |
). |
267 |
||
268 |
! ! |
|
269 |
||
270 |
!TestRunner methodsFor:'Accessing'! |
|
271 |
||
39 | 272 |
category |
273 |
|holder| |
|
274 |
||
275 |
(holder := builder bindingAt:#category) isNil ifTrue:[ |
|
276 |
holder := '* all *' asValue. |
|
277 |
builder aspectAt:#category put:holder. |
|
278 |
holder onChangeSend:#categorySelectionChanged to:self. |
|
279 |
]. |
|
280 |
^ holder. |
|
281 |
! |
|
282 |
||
283 |
categoryList |
|
284 |
^categoryModel isNil |
|
285 |
ifTrue: [categoryModel := ValueHolder new. self updateCategoryList. categoryModel] |
|
286 |
ifFalse: [categoryModel] |
|
287 |
! |
|
288 |
||
0 | 289 |
defectMenu |
290 |
"automatically generated by UIPainter ..." |
|
291 |
||
292 |
"*** the code below creates a default model when invoked." |
|
293 |
"*** (which may not be the one you wanted)" |
|
294 |
"*** Please change as required and accept it in the browser." |
|
295 |
||
296 |
^defectMenu isNil |
|
30 | 297 |
ifTrue: [defectMenu := OrderedCollection new asValue] |
298 |
ifFalse: [defectMenu] |
|
0 | 299 |
|
300 |
"Modified: / 4.4.2000 / 20:00:31 / Sames" |
|
301 |
! |
|
302 |
||
303 |
defects |
|
304 |
||
30 | 305 |
^self builder componentAt: #defects |
0 | 306 |
|
307 |
"Created: / 21.6.2000 / 12:19:29 / Sames" |
|
308 |
! |
|
309 |
||
310 |
details |
|
30 | 311 |
"This method was generated by UIDefiner. Any edits made here |
312 |
may be lost whenever methods are automatically defined. The |
|
313 |
initialization provided below may have been preempted by an |
|
314 |
initialize method." |
|
0 | 315 |
|
30 | 316 |
^details isNil |
317 |
ifTrue: |
|
318 |
[details := '...' asValue] |
|
319 |
ifFalse: |
|
320 |
[details] |
|
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
321 |
! |
0 | 322 |
|
323 |
mode |
|
30 | 324 |
"This method was generated by UIDefiner. Any edits made here |
325 |
may be lost whenever methods are automatically defined. The |
|
326 |
initialization provided below may have been preempted by an |
|
327 |
initialize method." |
|
0 | 328 |
|
30 | 329 |
^mode isNil |
330 |
ifTrue: |
|
331 |
[mode := 'N/A' asValue] |
|
332 |
ifFalse: |
|
333 |
[mode] |
|
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
334 |
! |
0 | 335 |
|
19 | 336 |
percentageDone |
337 |
|holder| |
|
338 |
||
339 |
(holder := builder bindingAt:#percentageDone) isNil ifTrue:[ |
|
30 | 340 |
holder := 0 asValue. |
341 |
builder aspectAt:#percentageDone put:holder. |
|
19 | 342 |
]. |
343 |
^ holder. |
|
344 |
! |
|
345 |
||
346 |
percentageIndicatorVisible |
|
347 |
|holder| |
|
348 |
||
349 |
(holder := builder bindingAt:#percentageIndicatorVisible) isNil ifTrue:[ |
|
30 | 350 |
holder := false asValue. |
351 |
builder aspectAt:#percentageIndicatorVisible put:holder. |
|
19 | 352 |
]. |
353 |
^ holder. |
|
354 |
! |
|
355 |
||
0 | 356 |
script |
357 |
"automatically generated by UIPainter ..." |
|
358 |
||
359 |
"*** the code below creates a default model when invoked." |
|
360 |
"*** (which may not be the one you wanted)" |
|
361 |
"*** Please change as required and accept it in the browser." |
|
362 |
||
363 |
|holder| |
|
364 |
||
365 |
(holder := builder bindingAt:#script) isNil ifTrue:[ |
|
30 | 366 |
holder := ValueHolder new. |
367 |
builder aspectAt:#script put:holder. |
|
368 |
holder onChangeSend:#scriptSelectionChanged to:self. |
|
0 | 369 |
"/ holder addDependent:self. |
370 |
]. |
|
371 |
^ holder. |
|
372 |
||
373 |
"Created: / 21.6.2000 / 12:04:36 / Sames" |
|
374 |
! |
|
375 |
||
376 |
script:something |
|
377 |
"automatically generated by UIPainter ..." |
|
378 |
||
379 |
"This method is used when I am embedded as subApplication," |
|
380 |
"and the mainApp wants to connect its aspects to mine." |
|
381 |
||
382 |
"/ |holder| |
|
383 |
||
384 |
"/ (holder := builder bindingAt:#script) notNil ifTrue:[ |
|
385 |
"/ holder removeDependent:self. |
|
386 |
"/ ]. |
|
387 |
builder aspectAt:#script put:something. |
|
388 |
"/ something notNil ifTrue:[ |
|
389 |
"/ something addDependent:self. |
|
390 |
"/ ]. |
|
391 |
^ self. |
|
392 |
||
393 |
"Created: / 21.6.2000 / 12:04:36 / Sames" |
|
394 |
! |
|
395 |
||
396 |
scriptModel |
|
397 |
"This method was generated by UIDefiner. Any edits made here |
|
28 | 398 |
may be lost whenever methods are automatically defined. The |
399 |
initialization provided below may have been preempted by an |
|
400 |
initialize method." |
|
0 | 401 |
|
402 |
^scriptModel isNil |
|
28 | 403 |
ifTrue: [scriptModel := ValueHolder new. self updateSuitesList. scriptModel] |
404 |
ifFalse: [scriptModel] |
|
0 | 405 |
|
406 |
"Modified: / 2.4.2000 / 14:37:51 / Sames" |
|
407 |
! |
|
408 |
||
409 |
selection |
|
410 |
||
30 | 411 |
^defect |
0 | 412 |
|
413 |
"Created: / 4.4.2000 / 18:50:55 / Sames" |
|
414 |
! |
|
415 |
||
416 |
selectionHolder |
|
417 |
"automatically generated by UIPainter ..." |
|
418 |
||
419 |
"*** the code below creates a default model when invoked." |
|
420 |
"*** (which may not be the one you wanted)" |
|
421 |
"*** Please change as required and accept it in the browser." |
|
422 |
||
423 |
|holder| |
|
424 |
||
425 |
(holder := builder bindingAt:#selectionHolder) isNil ifTrue:[ |
|
30 | 426 |
holder := AspectAdaptor new subject:self; forAspect:#selection. |
427 |
builder aspectAt:#selectionHolder put:holder. |
|
0 | 428 |
"/ holder addDependent:self. |
429 |
]. |
|
430 |
^ holder. |
|
431 |
||
432 |
"Created: / 4.4.2000 / 18:46:08 / Sames" |
|
433 |
"Modified: / 4.4.2000 / 18:47:31 / Sames" |
|
434 |
! |
|
435 |
||
436 |
tests |
|
437 |
||
30 | 438 |
^self builder componentAt: #tests |
0 | 439 |
|
440 |
"Created: / 4.4.2000 / 19:57:37 / Sames" |
|
441 |
! ! |
|
442 |
||
443 |
!TestRunner methodsFor:'Actions'! |
|
444 |
||
10 | 445 |
browseSelectedTestCase |
446 |
|testCaseName testCase| |
|
447 |
||
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
448 |
testCaseName := self selectedScript. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
449 |
testCaseName notNil ifTrue:[ |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
450 |
testCase := Smalltalk at:testCaseName asSymbol. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
451 |
testCase notNil ifTrue:[ |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
452 |
(UserPreferences current systemBrowserClass openInClass:testCase) |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
453 |
selectProtocolsMatching:'*' |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
454 |
] |
10 | 455 |
] |
456 |
! |
|
457 |
||
39 | 458 |
categorySelectionChanged |
459 |
self updateSuitesList |
|
460 |
! |
|
461 |
||
0 | 462 |
debugSelectedFailure |
30 | 463 |
self debugTest: self selection |
0 | 464 |
|
465 |
"Created: / 21.6.2000 / 10:58:58 / Sames" |
|
466 |
"Modified: / 21.6.2000 / 12:21:05 / Sames" |
|
467 |
! |
|
468 |
||
469 |
debugTest: aTestCaseName |
|
470 |
| testCase | |
|
29
ada4e34e33ec
allow reselecting in defect-popUpList
Claus Gittinger <cg@exept.de>
parents:
28
diff
changeset
|
471 |
|
0 | 472 |
defect := aTestCaseName. |
473 |
testCase := allDefects at: aTestCaseName ifAbsent: [nil]. |
|
474 |
testCase isNil ifTrue: [^self enableDebugButton value: false]. |
|
475 |
self enableDebugButton value: true. |
|
476 |
self displayMode: 'Debugging'. |
|
477 |
||
29
ada4e34e33ec
allow reselecting in defect-popUpList
Claus Gittinger <cg@exept.de>
parents:
28
diff
changeset
|
478 |
defect := nil. |
ada4e34e33ec
allow reselecting in defect-popUpList
Claus Gittinger <cg@exept.de>
parents:
28
diff
changeset
|
479 |
self withWaitCursorDo:[ |
ada4e34e33ec
allow reselecting in defect-popUpList
Claus Gittinger <cg@exept.de>
parents:
28
diff
changeset
|
480 |
(result isFailure: testCase) |
ada4e34e33ec
allow reselecting in defect-popUpList
Claus Gittinger <cg@exept.de>
parents:
28
diff
changeset
|
481 |
ifTrue: [testCase debugAsFailure] |
ada4e34e33ec
allow reselecting in defect-popUpList
Claus Gittinger <cg@exept.de>
parents:
28
diff
changeset
|
482 |
ifFalse: [testCase debug]. |
ada4e34e33ec
allow reselecting in defect-popUpList
Claus Gittinger <cg@exept.de>
parents:
28
diff
changeset
|
483 |
]. |
0 | 484 |
"Modified: / 21.6.2000 / 12:12:09 / Sames" |
485 |
! |
|
486 |
||
487 |
enableDebugButton |
|
488 |
"automatically generated by UIPainter ..." |
|
489 |
"*** the code below creates a default model when invoked." |
|
490 |
"*** (which may not be the one you wanted)" |
|
491 |
"*** Please change as required and accept it in the browser." |
|
492 |
||
493 |
| holder | |
|
494 |
(holder := builder bindingAt: #enableDebugButton) isNil |
|
30 | 495 |
ifTrue: |
496 |
[holder := true asValue. |
|
497 |
builder aspectAt: #enableDebugButton put: holder |
|
498 |
" holder addDependent:self."]. |
|
0 | 499 |
^holder |
500 |
||
501 |
"Created: / 21.6.2000 / 10:47:34 / Sames" |
|
502 |
"Modified: / 21.6.2000 / 10:51:07 / Sames" |
|
503 |
! |
|
504 |
||
505 |
enableDefectsList |
|
506 |
"automatically generated by UIPainter ..." |
|
507 |
||
508 |
"*** the code below creates a default model when invoked." |
|
509 |
"*** (which may not be the one you wanted)" |
|
510 |
"*** Please change as required and accept it in the browser." |
|
511 |
||
512 |
|holder| |
|
513 |
||
514 |
(holder := builder bindingAt:#enableDefectsList) isNil ifTrue:[ |
|
30 | 515 |
holder := true asValue. |
516 |
builder aspectAt:#enableDefectsList put:holder. |
|
0 | 517 |
"/ holder addDependent:self. |
518 |
]. |
|
519 |
^ holder. |
|
520 |
||
521 |
"Created: / 21.6.2000 / 10:47:34 / Sames" |
|
522 |
! |
|
523 |
||
524 |
enableRunButton |
|
525 |
"automatically generated by UIPainter ..." |
|
526 |
||
527 |
"*** the code below creates a default model when invoked." |
|
528 |
"*** (which may not be the one you wanted)" |
|
529 |
"*** Please change as required and accept it in the browser." |
|
530 |
||
531 |
|holder| |
|
532 |
||
533 |
(holder := builder bindingAt:#enableRunButton) isNil ifTrue:[ |
|
30 | 534 |
holder := true asValue. |
535 |
builder aspectAt:#enableRunButton put:holder. |
|
0 | 536 |
"/ holder addDependent:self. |
537 |
]. |
|
538 |
^ holder. |
|
539 |
||
540 |
"Created: / 21.6.2000 / 10:47:34 / Sames" |
|
541 |
! |
|
542 |
||
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
543 |
enableRunDefectsButton |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
544 |
"automatically generated by UIPainter ..." |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
545 |
|
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
546 |
"*** the code below creates a default model when invoked." |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
547 |
"*** (which may not be the one you wanted)" |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
548 |
"*** Please change as required and accept it in the browser." |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
549 |
|
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
550 |
|holder| |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
551 |
|
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
552 |
(holder := builder bindingAt:#enableRunDefectsButton) isNil ifTrue:[ |
30 | 553 |
holder := true asValue. |
554 |
builder aspectAt:#enableRunDefectsButton put:holder. |
|
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
555 |
"/ holder addDependent:self. |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
556 |
]. |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
557 |
^ holder. |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
558 |
! |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
559 |
|
0 | 560 |
refreshSuites |
39 | 561 |
self updateCategoryList. |
562 |
self updateSuitesList. |
|
563 |
||
564 |
self script value:nil. |
|
565 |
self tests selection: 0. |
|
566 |
self defects selection: 0. |
|
567 |
result := TestResult new. |
|
568 |
self displayRefresh |
|
0 | 569 |
|
570 |
"Created: / 21.6.2000 / 10:58:34 / Sames" |
|
571 |
"Modified: / 21.6.2000 / 12:19:54 / Sames" |
|
572 |
! |
|
573 |
||
574 |
runAllTests |
|
30 | 575 |
self runSuite: self allTestSuite |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
576 |
! |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
577 |
|
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
578 |
runDefectTests |
30 | 579 |
| testSuite | |
580 |
(testSuite := self defectTestSuite) notNil ifTrue: |
|
581 |
[self runSuite: testSuite] |
|
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
582 |
! |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
583 |
|
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
584 |
runDefects |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
585 |
allDefects size > 0 ifTrue:[ |
30 | 586 |
^ self runDefectTests |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
587 |
]. |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
588 |
self runTests |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
589 |
! |
0 | 590 |
|
591 |
runSuite: aTestSuite |
|
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
592 |
|numTests| |
19 | 593 |
|
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
594 |
"/ count the number of individual tests |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
595 |
numTests := 0. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
596 |
aTestSuite tests do:[:eachTestOrSubSuite | |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
597 |
(eachTestOrSubSuite isKindOf:TestSuite) ifTrue:[ |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
598 |
numTests := numTests + eachTestOrSubSuite tests size. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
599 |
] ifFalse:[ |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
600 |
numTests := numTests + 1. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
601 |
] |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
602 |
]. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
603 |
numberOfTestsToRun := numTests. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
604 |
self percentageDone value:0. |
19 | 605 |
|
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
606 |
Cursor |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
607 |
wait |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
608 |
showWhile:[ |
39 | 609 |
|errorCountBefore failureCountBefore| |
610 |
||
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
611 |
self displayRunning. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
612 |
aTestSuite addDependentToHierachy: self. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
613 |
result := TestResult new. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
614 |
self showPercentageIndicator. |
25
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
615 |
|
39 | 616 |
errorCountBefore := result errorCount. |
617 |
failureCountBefore := result failureCount. |
|
618 |
||
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
619 |
[ |
39 | 620 |
aTestSuite |
621 |
run:result |
|
622 |
afterEachDo:[:eachCase :eachResult | |
|
623 |
|caseName passed errorCountAfter failureCountAfter| |
|
624 |
||
625 |
caseName := eachCase name. |
|
626 |
caseName size == 0 ifTrue:[self halt]. |
|
627 |
||
628 |
errorCountAfter := result errorCount. |
|
629 |
failureCountAfter := result failureCount. |
|
630 |
passed := (errorCountAfter == errorCountBefore) |
|
631 |
& (failureCountAfter == failureCountBefore). |
|
632 |
||
633 |
passed == true ifTrue:[ |
|
634 |
testsWhichPassed add:caseName. |
|
635 |
testsWhichFailed remove:caseName ifAbsent:nil. |
|
636 |
] ifFalse:[ |
|
637 |
testsWhichFailed add:caseName. |
|
638 |
testsWhichPassed remove:caseName ifAbsent:nil. |
|
639 |
]. |
|
640 |
errorCountBefore := errorCountAfter. |
|
641 |
failureCountBefore := failureCountAfter |
|
642 |
||
643 |
] |
|
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
644 |
] ensure: [ |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
645 |
aTestSuite removeDependentFromHierachy: self. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
646 |
self hidePercentageIndicator. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
647 |
self displayNormalColorInProgress. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
648 |
]. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
649 |
self updateWindow |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
650 |
] |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
651 |
! |
0 | 652 |
|
653 |
runTests |
|
30 | 654 |
| testSuite | |
655 |
(testSuite := self freshTestSuite) notNil ifTrue: |
|
656 |
[self runSuite: testSuite] |
|
0 | 657 |
|
658 |
"Modified: / 2.4.2000 / 14:16:10 / Sames" |
|
659 |
! |
|
660 |
||
11 | 661 |
scriptSelectionChanged |
15 | 662 |
self enableRunButton value:(self script value notNil). |
11 | 663 |
! |
664 |
||
0 | 665 |
selection: aValue |
666 |
||
30 | 667 |
self debugTest: aValue |
0 | 668 |
|
669 |
"Created: / 4.4.2000 / 18:54:09 / Sames" |
|
670 |
"Modified: / 4.4.2000 / 19:01:33 / Sames" |
|
671 |
! |
|
672 |
||
29
ada4e34e33ec
allow reselecting in defect-popUpList
Claus Gittinger <cg@exept.de>
parents:
28
diff
changeset
|
673 |
setSelection: aValue |
ada4e34e33ec
allow reselecting in defect-popUpList
Claus Gittinger <cg@exept.de>
parents:
28
diff
changeset
|
674 |
|
ada4e34e33ec
allow reselecting in defect-popUpList
Claus Gittinger <cg@exept.de>
parents:
28
diff
changeset
|
675 |
defect := aValue |
ada4e34e33ec
allow reselecting in defect-popUpList
Claus Gittinger <cg@exept.de>
parents:
28
diff
changeset
|
676 |
! |
ada4e34e33ec
allow reselecting in defect-popUpList
Claus Gittinger <cg@exept.de>
parents:
28
diff
changeset
|
677 |
|
0 | 678 |
suiteSelectionChanged |
8 | 679 |
|ok className description cls| |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
680 |
|
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
681 |
self enableRunButton value:(ok := self freshTestSuite notNil). |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
682 |
self enableRunDefectsButton value:(ok and:[allDefects size > 0]). |
0 | 683 |
|
8 | 684 |
self script value notNil ifTrue:[ |
42 | 685 |
className := self selectedScript string. |
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
686 |
(ok and:[className notNil]) ifTrue:[ |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
687 |
cls := Smalltalk at:className. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
688 |
(cls class implements:#description) ifTrue:[ |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
689 |
description := cls description. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
690 |
] |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
691 |
]. |
8 | 692 |
]. |
17 | 693 |
self displayDetails:nil. |
694 |
self displayMode: (description ? ''). |
|
695 |
self displayGray. |
|
8 | 696 |
|
0 | 697 |
"Created: / 21.6.2000 / 11:31:25 / Sames" |
698 |
"Modified: / 21.6.2000 / 11:32:54 / Sames" |
|
24
0f897c4468c3
automatic update, when new testCase classes arrive,
Claus Gittinger <cg@exept.de>
parents:
23
diff
changeset
|
699 |
! |
0f897c4468c3
automatic update, when new testCase classes arrive,
Claus Gittinger <cg@exept.de>
parents:
23
diff
changeset
|
700 |
|
39 | 701 |
suitesInCategory |
702 |
|suites cat allCategories| |
|
703 |
||
704 |
cat := self category value. |
|
705 |
allCategories := (cat = '* all *'). |
|
706 |
||
707 |
suites := TestCase allSubclasses |
|
708 |
select:[:each | allCategories or:[cat = each category]] |
|
709 |
thenCollect: [:each | each name]. |
|
710 |
suites sort. |
|
711 |
^ suites |
|
712 |
! |
|
713 |
||
714 |
updateCategoryList |
|
715 |
|categories| |
|
716 |
||
717 |
categories := (TestCase allSubclasses collect: [:each | each category]) asSet asOrderedCollection. |
|
718 |
categories sort. |
|
719 |
categories addFirst:'* all *'. |
|
720 |
self categoryList value:categories. |
|
721 |
! |
|
722 |
||
24
0f897c4468c3
automatic update, when new testCase classes arrive,
Claus Gittinger <cg@exept.de>
parents:
23
diff
changeset
|
723 |
updateSuitesList |
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
724 |
|suites| |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
725 |
|
39 | 726 |
suites := self suitesInCategory. |
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
727 |
suites := suites |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
728 |
collect:[:eachSuiteName | |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
729 |
(testsWhichFailed includes:eachSuiteName) ifTrue:[ |
42 | 730 |
eachSuiteName colorizeAllWith:(self class colorForFailedTests). |
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
731 |
] ifFalse:[ |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
732 |
(testsWhichPassed includes:eachSuiteName) ifTrue:[ |
42 | 733 |
eachSuiteName colorizeAllWith:(self class colorForPassedTests). |
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
734 |
] ifFalse:[ |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
735 |
eachSuiteName |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
736 |
] |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
737 |
]. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
738 |
]. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
739 |
self scriptModel value: suites. |
0 | 740 |
! ! |
741 |
||
742 |
!TestRunner methodsFor:'Private'! |
|
743 |
||
744 |
allTestSuite |
|
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
745 |
"generate and return a suite for all tests, except SUnitTests" |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
746 |
|
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
747 |
| tokens stream suite| |
39 | 748 |
|
749 |
tokens := (self suitesInCategory |
|
750 |
collect: [:eachName | eachName ", '*' " ]) |
|
751 |
copyWithout: 'SUnitTest* '. |
|
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
752 |
stream := WriteStream on: String new. |
39 | 753 |
tokens do: [:each | stream nextPutAll:each; space]. |
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
754 |
suite := TestSuitesScripter run: stream contents. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
755 |
suite name:'all'. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
756 |
^ suite |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
757 |
! |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
758 |
|
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
759 |
defectTestSuite |
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
760 |
|suite| |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
761 |
|
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
762 |
suite := TestSuite new. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
763 |
suite name:'defects'. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
764 |
allDefects keysAndValuesDo:[:nm :test | |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
765 |
suite addTest:test. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
766 |
]. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
767 |
^suite |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
768 |
! |
0 | 769 |
|
770 |
formatTime: aTime |
|
30 | 771 |
aTime hours > 0 ifTrue: [^aTime hours printString , 'h']. |
772 |
aTime minutes > 0 ifTrue: [^aTime minutes printString , 'min']. |
|
773 |
^aTime seconds printString , ' sec' |
|
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
774 |
! |
0 | 775 |
|
776 |
freshTestSuite |
|
777 |
||
30 | 778 |
^TestSuitesScripter run: self tests contents |
0 | 779 |
|
780 |
"Modified: / 4.4.2000 / 20:13:41 / Sames" |
|
781 |
! |
|
782 |
||
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
783 |
initialize |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
784 |
super initialize. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
785 |
|
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
786 |
testsWhichPassed := Set new. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
787 |
testsWhichFailed := Set new. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
788 |
! |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
789 |
|
0 | 790 |
postOpenWith: aBuilder |
791 |
"automatically generated by UIPainter ..." |
|
792 |
||
793 |
super postOpenWith: aBuilder. |
|
794 |
self tests defaultLabel: ''. |
|
11 | 795 |
"/ self tests selection: 'ExampleSetTest'. self script value:1. |
15 | 796 |
|
797 |
self enableRunButton value: (self script value notNil). |
|
10 | 798 |
self enableRunDefectsButton value: false. |
0 | 799 |
self enableDebugButton value: false. |
800 |
self enableDefectsList value: false. |
|
24
0f897c4468c3
automatic update, when new testCase classes arrive,
Claus Gittinger <cg@exept.de>
parents:
23
diff
changeset
|
801 |
self script onChangeSend: #suiteSelectionChanged to:self. |
0f897c4468c3
automatic update, when new testCase classes arrive,
Claus Gittinger <cg@exept.de>
parents:
23
diff
changeset
|
802 |
|
0f897c4468c3
automatic update, when new testCase classes arrive,
Claus Gittinger <cg@exept.de>
parents:
23
diff
changeset
|
803 |
Smalltalk addDependent:self. |
0 | 804 |
|
805 |
"Created: / 2.4.2000 / 14:44:32 / Sames" |
|
806 |
"Modified: / 21.6.2000 / 12:06:30 / Sames" |
|
807 |
! |
|
808 |
||
24
0f897c4468c3
automatic update, when new testCase classes arrive,
Claus Gittinger <cg@exept.de>
parents:
23
diff
changeset
|
809 |
release |
0f897c4468c3
automatic update, when new testCase classes arrive,
Claus Gittinger <cg@exept.de>
parents:
23
diff
changeset
|
810 |
Smalltalk removeDependent:self. |
0f897c4468c3
automatic update, when new testCase classes arrive,
Claus Gittinger <cg@exept.de>
parents:
23
diff
changeset
|
811 |
super release. |
0f897c4468c3
automatic update, when new testCase classes arrive,
Claus Gittinger <cg@exept.de>
parents:
23
diff
changeset
|
812 |
! |
0f897c4468c3
automatic update, when new testCase classes arrive,
Claus Gittinger <cg@exept.de>
parents:
23
diff
changeset
|
813 |
|
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
814 |
selectedScript |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
815 |
|scriptIndex| |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
816 |
|
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
817 |
scriptIndex := self script value. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
818 |
scriptIndex isNil ifTrue:[ |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
819 |
^ '' |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
820 |
]. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
821 |
^ self scriptModel value at:scriptIndex ifAbsent:nil. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
822 |
! |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
823 |
|
0 | 824 |
timeSinceLastPassAsString |
30 | 825 |
lastPass isNil ifTrue: [^'']. |
826 |
^', ' , (self formatTime: (Time now subtractTime: lastPass getSeconds)) , ' since last Pass' |
|
0 | 827 |
|
828 |
"Modified: / 3.4.2000 / 19:17:11 / Sames" |
|
829 |
! ! |
|
830 |
||
831 |
!TestRunner methodsFor:'Updating'! |
|
832 |
||
833 |
displayColor: aColorValue |
|
834 |
||
30 | 835 |
(builder componentAt: #mode) widget insideColor: aColorValue. |
836 |
(builder componentAt: #details) widget insideColor: aColorValue. |
|
0 | 837 |
|
838 |
"Modified: / 2.4.2000 / 14:21:42 / Sames" |
|
839 |
! |
|
840 |
||
841 |
displayDefault |
|
30 | 842 |
self displayColor: self tests backgroundColor |
0 | 843 |
|
844 |
"Created: / 21.6.2000 / 12:28:06 / Sames" |
|
845 |
"Modified: / 21.6.2000 / 12:35:09 / Sames" |
|
846 |
! |
|
847 |
||
848 |
displayDefects: aCollection |
|
849 |
| menuButton | |
|
850 |
menuButton := self builder componentAt: #defects. |
|
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
851 |
aCollection isEmpty ifTrue: [ |
30 | 852 |
menuButton disable. |
853 |
self enableRunDefectsButton value:false. |
|
854 |
^ self |
|
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
855 |
]. |
0 | 856 |
allDefects := Dictionary new. |
857 |
aCollection do: [:each | allDefects at: each printString put: each]. |
|
21 | 858 |
self defectMenu value: allDefects keys asOrderedCollection sort. |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
859 |
menuButton enable. |
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
860 |
self enableRunDefectsButton value:(allDefects size > 0). |
0 | 861 |
|
862 |
"Modified: / 4.4.2000 / 20:11:06 / Sames" |
|
863 |
! |
|
864 |
||
865 |
displayDetails: aString |
|
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
866 |
self details value: aString. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
867 |
self repairDamage. |
0 | 868 |
|
869 |
"Modified: / 21.6.2000 / 11:10:14 / Sames" |
|
870 |
! |
|
871 |
||
25
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
872 |
displayErrorColorInProgress |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
873 |
(self builder componentAt:#ProgressIndicator1) |
42 | 874 |
foregroundColor: (self class colorForFailedTests). |
25
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
875 |
|
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
876 |
"/ (self builder componentAt:#ProgressIndicator1) |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
877 |
"/ backgroundColor: (Color red:67 green:0 blue:0) |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
878 |
! |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
879 |
|
0 | 880 |
displayFail |
30 | 881 |
self displayRed. |
882 |
self displayMode: 'Fail'. |
|
883 |
self displayDetails: result printString. |
|
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
884 |
! |
0 | 885 |
|
17 | 886 |
displayGray |
30 | 887 |
self displayColor: (View defaultViewBackgroundColor) |
17 | 888 |
! |
889 |
||
0 | 890 |
displayGreen |
30 | 891 |
self displayColor: ColorValue green |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
892 |
! |
0 | 893 |
|
894 |
displayMode: aString |
|
30 | 895 |
self mode value: aString |
0 | 896 |
|
897 |
"Modified: / 21.6.2000 / 11:14:19 / Sames" |
|
898 |
! |
|
899 |
||
25
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
900 |
displayNormalColorInProgress |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
901 |
(self builder componentAt:#ProgressIndicator1) |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
902 |
foregroundColor: (Color red:33 green:33 blue:0); |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
903 |
backgroundColor: (Color red:67 green:67 blue:0) |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
904 |
! |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
905 |
|
0 | 906 |
displayPass |
907 |
self displayMode: 'Pass'. |
|
908 |
self displayDetails: result runCount printString , ' run' , self timeSinceLastPassAsString. |
|
909 |
self displayGreen. |
|
910 |
lastPass := Time now |
|
911 |
||
912 |
"Modified: / 21.6.2000 / 12:14:52 / Sames" |
|
913 |
! |
|
914 |
||
915 |
displayRed |
|
30 | 916 |
self displayColor: ColorValue red. |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
917 |
! |
0 | 918 |
|
919 |
displayRefresh |
|
920 |
self displayMode: 'N/A'. |
|
921 |
self displayDetails:'...'. |
|
922 |
self updateDefects. |
|
923 |
self enableRunButton value: false. |
|
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
924 |
self enableRunDefectsButton value: false. |
0 | 925 |
self enableDebugButton value: false. |
926 |
self displayDefault |
|
927 |
||
928 |
"Created: / 21.6.2000 / 12:14:11 / Sames" |
|
929 |
"Modified: / 21.6.2000 / 12:28:24 / Sames" |
|
930 |
! |
|
931 |
||
932 |
displayRunning |
|
39 | 933 |
self displayRunning:(self selectedScript ? 'all') string. |
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
934 |
! |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
935 |
|
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
936 |
displayRunning:scriptName |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
937 |
self displayYellow. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
938 |
self displayMode:('running ' , scriptName allBold). |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
939 |
self displayDetails: '...'. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
940 |
self repairDamage. |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
941 |
! |
0 | 942 |
|
943 |
displayYellow |
|
30 | 944 |
self displayColor: ColorValue yellow |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
945 |
! |
0 | 946 |
|
25
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
947 |
hidePercentageIndicator |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
948 |
self percentageIndicatorVisible value:false. |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
949 |
! |
24
0f897c4468c3
automatic update, when new testCase classes arrive,
Claus Gittinger <cg@exept.de>
parents:
23
diff
changeset
|
950 |
|
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
951 |
repairDamage |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
952 |
self windowGroup repairDamage. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
953 |
! |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
954 |
|
25
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
955 |
showPercentageIndicator |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
956 |
self percentageIndicatorVisible value:true. |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
957 |
! |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
958 |
|
30 | 959 |
update:something with:aParameter from:changedObject |
24
0f897c4468c3
automatic update, when new testCase classes arrive,
Claus Gittinger <cg@exept.de>
parents:
23
diff
changeset
|
960 |
changedObject == Smalltalk ifTrue:[ |
30 | 961 |
(changedObject isBehavior and:[changedObject isSubclassOf:TestCase]) ifTrue:[ |
28 | 962 |
self updateSuitesList |
963 |
]. |
|
964 |
^ self |
|
25
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
965 |
]. |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
966 |
|
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
967 |
(changedObject isKindOf: TestSuite) ifTrue: [ |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
968 |
self displayRunning:changedObject name. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
969 |
^ self |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
970 |
]. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
971 |
|
30 | 972 |
(changedObject isKindOf: TestCase) ifTrue: [ |
28 | 973 |
(result errorCount + result failureCount) > 0 ifTrue:[ |
974 |
self displayErrorColorInProgress. |
|
975 |
]. |
|
976 |
self percentageDone value:(result runCount / numberOfTestsToRun * 100) rounded. |
|
30 | 977 |
self displayDetails: changedObject printString. |
28 | 978 |
^ self |
25
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
979 |
]. |
ab09e4669864
change progressindicators color to red, when an error occurs.
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
980 |
|
30 | 981 |
super update:something with:aParameter from:changedObject |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
982 |
! |
0 | 983 |
|
984 |
updateDefects |
|
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
985 |
|script| |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
986 |
|
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
987 |
script := self selectedScript. |
39 | 988 |
script notNil ifTrue:[script := script string]. |
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
989 |
|
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
990 |
self displayDefects: result defects. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
991 |
|
39 | 992 |
script notNil ifTrue:[ |
993 |
result hasPassed ifTrue:[ |
|
994 |
testsWhichPassed add:script. |
|
995 |
testsWhichFailed remove:script ifAbsent:nil. |
|
996 |
] ifFalse:[ |
|
997 |
testsWhichFailed add:script. |
|
998 |
testsWhichPassed remove:script ifAbsent:nil. |
|
999 |
]. |
|
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
1000 |
]. |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
1001 |
! |
0 | 1002 |
|
1003 |
updateWindow |
|
38
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
1004 |
result hasPassed |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
1005 |
ifTrue: [self displayPass] |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
1006 |
ifFalse: [self displayFail]. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
1007 |
self updateDefects. |
5fb751a669eb
better update (name) and mark failed/passed suites in list
Claus Gittinger <cg@exept.de>
parents:
30
diff
changeset
|
1008 |
self updateSuitesList. "/ for colors |
6
78bb1397e43d
added rerun-defect tests; fixed button enable bug
Claus Gittinger <cg@exept.de>
parents:
5
diff
changeset
|
1009 |
! ! |
0 | 1010 |
|
11 | 1011 |
!TestRunner class methodsFor:'documentation'! |
1012 |
||
1013 |
version |
|
48 | 1014 |
^ '$Header: /cvs/stx/stx/goodies/sunit/TestRunner.st,v 1.24 2001-12-13 22:00:46 cg Exp $' |
11 | 1015 |
! ! |