author | Claus Gittinger <cg@exept.de> |
Wed, 05 Feb 2014 19:59:24 +0100 | |
changeset 13847 | 02f0e7912483 |
parent 13338 | da80957ff486 |
child 14322 | b742f9db3ddd |
permissions | -rw-r--r-- |
9954 | 1 |
" |
10092 | 2 |
Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague |
3 |
Copyright (c) 2009-2010 eXept Software AG |
|
9954 | 4 |
|
10092 | 5 |
Permission is hereby granted, free of charge, to any person |
6 |
obtaining a copy of this software and associated documentation |
|
7 |
files (the 'Software'), to deal in the Software without |
|
8 |
restriction, including without limitation the rights to use, |
|
9 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
10 |
copies of the Software, and to permit persons to whom the |
|
11 |
Software is furnished to do so, subject to the following |
|
12 |
conditions: |
|
13 |
||
14 |
The above copyright notice and this permission notice shall be |
|
15 |
included in all copies or substantial portions of the Software. |
|
16 |
||
17 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
18 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
19 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
20 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
21 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
22 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
23 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
24 |
OTHER DEALINGS IN THE SOFTWARE. |
|
9954 | 25 |
" |
26 |
"{ Package: 'stx:libtool' }" |
|
27 |
||
28 |
"{ NameSpace: Tools }" |
|
29 |
||
30 |
AbstractTestRunner subclass:#TestRunnerEmbedded |
|
11552 | 31 |
instanceVariableNames:'runnerPanel selectedClassesHolder selectedProtocolsHolder |
32 |
selectedMethodsHolder methodGeneratorHolder resultHolder |
|
33 |
resultInfoHolder resultBackgroundColorHolder runningHolder |
|
11553 | 34 |
progressHolder progressIndicatorShownHolder infoHolder |
12864
2d6b4213f793
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12762
diff
changeset
|
35 |
testProcess allTestCases progressIndicator' |
10647
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
36 |
classVariableNames:'' |
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
37 |
poolDictionaries:'' |
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
38 |
category:'SUnit-UI' |
9954 | 39 |
! |
40 |
||
41 |
Object subclass:#SuiteAndResult |
|
10647
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
42 |
instanceVariableNames:'suite result' |
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
43 |
classVariableNames:'' |
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
44 |
poolDictionaries:'' |
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
45 |
privateIn:TestRunnerEmbedded |
9954 | 46 |
! |
47 |
||
48 |
!TestRunnerEmbedded class methodsFor:'documentation'! |
|
49 |
||
50 |
copyright |
|
51 |
" |
|
10092 | 52 |
Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague |
53 |
Copyright (c) 2009-2010 eXept Software AG |
|
54 |
||
55 |
Permission is hereby granted, free of charge, to any person |
|
56 |
obtaining a copy of this software and associated documentation |
|
57 |
files (the 'Software'), to deal in the Software without |
|
58 |
restriction, including without limitation the rights to use, |
|
59 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
60 |
copies of the Software, and to permit persons to whom the |
|
61 |
Software is furnished to do so, subject to the following |
|
62 |
conditions: |
|
9954 | 63 |
|
10092 | 64 |
The above copyright notice and this permission notice shall be |
65 |
included in all copies or substantial portions of the Software. |
|
66 |
||
67 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
68 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
69 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
70 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
71 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
72 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
73 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
74 |
OTHER DEALINGS IN THE SOFTWARE. |
|
9954 | 75 |
" |
10175 | 76 |
! |
77 |
||
78 |
documentation |
|
79 |
" |
|
80 |
a tiny runner to be embedded in a system browser |
|
81 |
" |
|
9954 | 82 |
! ! |
83 |
||
11553 | 84 |
!TestRunnerEmbedded class methodsFor:'help specs'! |
85 |
||
86 |
flyByHelpSpec |
|
87 |
"This resource specification was automatically generated |
|
88 |
by the UIHelpTool of ST/X." |
|
89 |
||
90 |
"Do not manually edit this!! If it is corrupted, |
|
91 |
the UIHelpTool may not be able to read the specification." |
|
92 |
||
93 |
" |
|
94 |
UIHelpTool openOnClass:Tools::TestRunnerEmbedded |
|
95 |
" |
|
96 |
||
97 |
<resource: #help> |
|
98 |
||
99 |
^ super flyByHelpSpec addPairsFrom:#( |
|
100 |
||
101 |
#debugSelected |
|
102 |
'Run the selected test(s) with debugging enabled' |
|
103 |
||
104 |
#runAll |
|
105 |
'Run all tests' |
|
106 |
||
107 |
#runFailed |
|
108 |
'Only rerun failed tests' |
|
109 |
||
110 |
#runSelected |
|
111 |
'Run the selected test(s)' |
|
112 |
||
113 |
#stopRun |
|
114 |
'Stop the test-run' |
|
115 |
||
116 |
) |
|
117 |
||
118 |
"Created: / 04-06-2012 / 19:27:47 / cg" |
|
119 |
! ! |
|
120 |
||
9954 | 121 |
!TestRunnerEmbedded class methodsFor:'interface specs'! |
122 |
||
123 |
windowSpec |
|
124 |
"This resource specification was automatically generated |
|
125 |
by the UIPainter of ST/X." |
|
126 |
||
127 |
"Do not manually edit this!! If it is corrupted, |
|
128 |
the UIPainter may not be able to read the specification." |
|
129 |
||
130 |
" |
|
131 |
UIPainter new openOnClass:Tools::TestRunnerEmbedded andSelector:#windowSpec |
|
132 |
Tools::TestRunnerEmbedded new openInterface:#windowSpec |
|
133 |
Tools::TestRunnerEmbedded open |
|
134 |
" |
|
135 |
||
136 |
<resource: #canvas> |
|
137 |
||
138 |
^ |
|
139 |
#(FullSpec |
|
140 |
name: windowSpec |
|
141 |
window: |
|
142 |
(WindowSpec |
|
143 |
label: 'Test Runner Embedded' |
|
144 |
name: 'Test Runner Embedded' |
|
145 |
min: (Point 10 10) |
|
11552 | 146 |
bounds: (Rectangle 0 0 595 50) |
9954 | 147 |
) |
148 |
component: |
|
149 |
(SpecCollection |
|
150 |
collection: ( |
|
11553 | 151 |
(ViewSpec |
152 |
name: 'Runner' |
|
9954 | 153 |
layout: (LayoutFrame 5 0 0 0 -5 1 0 1) |
11553 | 154 |
backgroundChannel: resultBackgroundColorAspect |
9954 | 155 |
component: |
156 |
(SpecCollection |
|
157 |
collection: ( |
|
11553 | 158 |
(HorizontalPanelViewSpec |
159 |
name: 'RunnerInnerBox' |
|
160 |
layout: (LayoutFrame 5 0 0 0 -5 1 0 1) |
|
9954 | 161 |
backgroundChannel: resultBackgroundColorAspect |
11553 | 162 |
horizontalLayout: rightSpaceFit |
163 |
verticalLayout: center |
|
164 |
horizontalSpace: 0 |
|
165 |
elementsChangeSize: true |
|
9954 | 166 |
component: |
167 |
(SpecCollection |
|
168 |
collection: ( |
|
11553 | 169 |
(ViewSpec |
170 |
name: 'RunnerInfoBox' |
|
171 |
backgroundChannel: resultBackgroundColorAspect |
|
9954 | 172 |
component: |
173 |
(SpecCollection |
|
174 |
collection: ( |
|
11553 | 175 |
(LabelSpec |
176 |
label: 'Run tests first!!' |
|
177 |
name: 'ResultName' |
|
178 |
layout: (LayoutFrame 0 0 0 0 0 1 -10 1) |
|
179 |
backgroundChannel: resultBackgroundColorAspect |
|
180 |
foregroundColor: (Color 100.0 100.0 100.0) |
|
181 |
translateLabel: true |
|
182 |
labelChannel: resultNameAspect |
|
183 |
adjust: left |
|
184 |
) |
|
185 |
(LabelSpec |
|
186 |
name: 'ResultInfo' |
|
187 |
layout: (LayoutFrame 0 0 -10 1 0 1 0 1) |
|
188 |
style: (FontDescription helvetica medium roman 8 #'iso10646-1') |
|
189 |
backgroundChannel: resultBackgroundColorAspect |
|
190 |
foregroundColor: (Color 100.0 100.0 100.0) |
|
191 |
translateLabel: true |
|
192 |
labelChannel: resultInfoAspect |
|
193 |
adjust: left |
|
194 |
) |
|
9954 | 195 |
(ViewSpec |
11553 | 196 |
name: 'ProgressPanel' |
197 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
198 |
visibilityChannel: progressIndicatorShownHolder |
|
9954 | 199 |
backgroundChannel: resultBackgroundColorAspect |
200 |
component: |
|
201 |
(SpecCollection |
|
202 |
collection: ( |
|
11553 | 203 |
(ProgressIndicatorSpec |
204 |
name: 'RunningProgress' |
|
205 |
layout: (LayoutFrame 5 0 -10 0.5 -5 1 10 0.5) |
|
206 |
model: progressHolder |
|
12864
2d6b4213f793
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12762
diff
changeset
|
207 |
postBuildCallback: postBuildProgressIndicator: |
9954 | 208 |
) |
209 |
) |
|
210 |
||
211 |
) |
|
212 |
) |
|
213 |
) |
|
214 |
||
215 |
) |
|
11553 | 216 |
extent: (Point 276 30) |
217 |
) |
|
218 |
(ActionButtonSpec |
|
11568 | 219 |
label: 'Debug' |
220 |
name: 'DebugButton' |
|
221 |
activeHelpKey: debugSelected |
|
222 |
translateLabel: true |
|
223 |
model: debug |
|
224 |
enableChannel: runEnabledHolder |
|
225 |
extent: (Point 60 25) |
|
226 |
) |
|
227 |
(ActionButtonSpec |
|
11553 | 228 |
label: 'Stop' |
229 |
name: 'Button2' |
|
230 |
activeHelpKey: stopRun |
|
231 |
visibilityChannel: runningHolder |
|
232 |
translateLabel: true |
|
233 |
model: stop |
|
234 |
extent: (Point 60 25) |
|
235 |
) |
|
236 |
(ActionButtonSpec |
|
237 |
label: 'Run' |
|
238 |
name: 'Run' |
|
239 |
activeHelpKey: runSelected |
|
240 |
visibilityChannel: notRunningHolder |
|
241 |
translateLabel: true |
|
242 |
model: run |
|
243 |
enableChannel: runEnabledHolder |
|
244 |
extent: (Point 60 25) |
|
245 |
) |
|
246 |
(ActionButtonSpec |
|
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
247 |
label: ' Failed' |
11553 | 248 |
name: 'Button1' |
249 |
activeHelpKey: runFailed |
|
250 |
translateLabel: true |
|
251 |
model: runFailed |
|
252 |
enableChannel: runFailedEnabledHolder |
|
253 |
extent: (Point 60 25) |
|
254 |
) |
|
255 |
(ActionButtonSpec |
|
256 |
label: 'Run all' |
|
257 |
name: 'RunAll' |
|
258 |
activeHelpKey: runAll |
|
259 |
translateLabel: true |
|
260 |
model: runAll |
|
261 |
enableChannel: runAllEnabledHolder |
|
262 |
extent: (Point 60 25) |
|
9954 | 263 |
) |
264 |
) |
|
265 |
||
266 |
) |
|
11553 | 267 |
postBuildCallback: postBuildRunnerPanel: |
9954 | 268 |
) |
269 |
) |
|
270 |
||
271 |
) |
|
272 |
) |
|
273 |
) |
|
274 |
||
275 |
) |
|
276 |
) |
|
277 |
||
278 |
! ! |
|
279 |
||
280 |
!TestRunnerEmbedded class methodsFor:'plugIn spec'! |
|
281 |
||
282 |
aspectSelectors |
|
283 |
"This resource specification was automatically generated |
|
284 |
by the UIPainter of ST/X." |
|
285 |
||
286 |
"Do not manually edit this. If it is corrupted, |
|
287 |
the UIPainter may not be able to read the specification." |
|
288 |
||
289 |
"Return a description of exported aspects; |
|
290 |
these can be connected to aspects of an embedding application |
|
291 |
(if this app is embedded in a subCanvas)." |
|
292 |
||
293 |
^ #( |
|
294 |
#methodGeneratorHolder |
|
295 |
#selectedClassesHolder |
|
296 |
#selectedMethodsHolder |
|
297 |
#selectedProtocolsHolder |
|
298 |
). |
|
299 |
||
300 |
! ! |
|
301 |
||
302 |
!TestRunnerEmbedded methodsFor:'accessing'! |
|
303 |
||
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
304 |
allTestCases |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
305 |
allTestCases isNil ifTrue:[ |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
306 |
self updateTestCases |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
307 |
]. |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
308 |
^ allTestCases |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
309 |
! |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
310 |
|
10175 | 311 |
infoHolder:something |
312 |
"to show something in the browsers info area (near the bottom" |
|
313 |
||
314 |
infoHolder := something. |
|
315 |
||
316 |
"Created: / 05-07-2011 / 16:22:24 / cg" |
|
317 |
! |
|
318 |
||
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
319 |
invalidateAllTestCases |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
320 |
allTestCases := nil |
9954 | 321 |
! |
322 |
||
13847 | 323 |
selectedTestMethods |
324 |
||
325 |
| selectedClass | |
|
326 |
selectedClass := self theSingleTestCase. |
|
327 |
||
328 |
^ (self selectedMethodsHolder value ? #()) select: |
|
329 |
[:mthd | | cls | |
|
330 |
(cls := selectedClass) isNil ifTrue:[cls := mthd mclass]. |
|
331 |
(self isTestCaseLike:selectedClass) |
|
332 |
and:[ selectedClass isTestSelector:mthd selector ] ] |
|
333 |
||
334 |
"Created: / 15-03-2010 / 13:21:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
335 |
"Modified: / 22-07-2011 / 15:46:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
336 |
"Modified: / 02-08-2011 / 17:46:38 / cg" |
|
337 |
! |
|
338 |
||
339 |
selectedTestMethodsFromProtocols:protocols |
|
340 |
||
341 |
|methods generator selectedClass| |
|
342 |
||
343 |
methods := Set new. |
|
344 |
generator := self methodGeneratorHolder value. |
|
345 |
selectedClass := self theSingleTestCase. |
|
346 |
||
347 |
generator notNil ifTrue:[ |
|
348 |
generator do: [:cls :cat :sel :mthd | |
|
349 |
(mthd notNil |
|
350 |
and:[ (self isTestCaseLike:(selectedClass ? cls)) |
|
351 |
and:[ (selectedClass ? cls) isTestSelector:sel ] ]) |
|
352 |
ifTrue:[ methods add:mthd ] |
|
353 |
] |
|
354 |
] ifFalse:[ |
|
355 |
allTestCases do: [:cls | |
|
356 |
cls methodsDo: [:mthd | |
|
357 |
((protocols includes:mthd category) and:[ cls isTestSelector:mthd selector ]) |
|
358 |
ifTrue:[ |
|
359 |
methods add:mthd |
|
360 |
] |
|
361 |
] |
|
362 |
] |
|
363 |
]. |
|
364 |
^ methods |
|
365 |
||
366 |
"Created: / 15-03-2010 / 19:50:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
367 |
"Modified: / 22-07-2011 / 15:53:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
368 |
"Modified (format): / 04-06-2012 / 19:05:32 / cg" |
|
369 |
! |
|
370 |
||
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
371 |
selectedTestMethodsFromProtocols:protocols inClass:aTestClass |
10374 | 372 |
|
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
373 |
|methods generator| |
9954 | 374 |
|
375 |
methods := Set new. |
|
376 |
generator := self methodGeneratorHolder value. |
|
10374 | 377 |
|
11552 | 378 |
generator notNil ifTrue:[ |
379 |
generator do: [:cls :cat :sel :mthd | |
|
380 |
(mthd notNil |
|
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
381 |
and:[ (self isTestCaseLike:(aTestClass ? cls)) |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
382 |
and:[ (aTestClass ? cls) isTestSelector:sel ] ]) |
11552 | 383 |
ifTrue:[ methods add:mthd ] |
384 |
] |
|
385 |
] ifFalse:[ |
|
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
386 |
self allTestCases do: [:cls | |
11552 | 387 |
cls methodsDo: [:mthd | |
388 |
((protocols includes:mthd category) and:[ cls isTestSelector:mthd selector ]) |
|
389 |
ifTrue:[ |
|
390 |
methods add:mthd |
|
391 |
] |
|
392 |
] |
|
393 |
] |
|
394 |
]. |
|
9954 | 395 |
^ methods |
396 |
||
397 |
"Created: / 15-03-2010 / 19:50:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10374 | 398 |
"Modified: / 22-07-2011 / 15:53:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
11552 | 399 |
"Modified (format): / 04-06-2012 / 19:05:32 / cg" |
10374 | 400 |
! |
401 |
||
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
402 |
selectedTestMethodsInClass:testClass |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
403 |
^ (self selectedMethodsHolder value ? #()) select: |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
404 |
[:mthd | | cls | |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
405 |
(cls := testClass) isNil ifTrue:[cls := mthd mclass]. |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
406 |
(self isTestCaseLike:testClass) |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
407 |
and:[ testClass isTestSelector:mthd selector ] ] |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
408 |
|
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
409 |
"Created: / 15-03-2010 / 13:21:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
410 |
"Modified: / 22-07-2011 / 15:46:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
411 |
"Modified: / 02-08-2011 / 17:46:38 / cg" |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
412 |
! |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
413 |
|
10374 | 414 |
theSingleTestCase |
415 |
||
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
416 |
self allTestCases isEmptyOrNil ifTrue:[^nil]. |
11552 | 417 |
allTestCases size > 1 ifTrue:[^nil]. |
10374 | 418 |
|
11552 | 419 |
^allTestCases anyOne. |
10374 | 420 |
|
421 |
"Created: / 22-07-2011 / 15:44:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
9954 | 422 |
! ! |
423 |
||
424 |
!TestRunnerEmbedded methodsFor:'actions'! |
|
425 |
||
426 |
debug |
|
12055 | 427 |
| suiteAndResult suite result | |
9954 | 428 |
|
429 |
suiteAndResult := self resultHolder value. |
|
10647
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
430 |
suite := suiteAndResult suiteForRun. |
11553 | 431 |
"/ suite tests size ~= 1 ifTrue:[^self breakPoint: #jv]. |
432 |
"/ test := suiteAndResult suite tests anyOne. |
|
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
433 |
result := TestResult defaultResultClass new. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
434 |
suiteAndResult := SuiteAndResult suite: suite result: result. |
11553 | 435 |
|
436 |
self stop. |
|
437 |
||
12055 | 438 |
"/ debug run is synchronous |
439 |
[ |
|
440 |
self runningHolder value:true. |
|
11553 | 441 |
|
12055 | 442 |
suite tests do:[:test | |
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
443 |
[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
444 |
test debug. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
445 |
] ifCurtailed:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
446 |
result failureOutcomes add: test. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
447 |
self resultHolder value:suiteAndResult; changed. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
448 |
]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
449 |
|
12055 | 450 |
(test class testSelectorPassed:test selector) ifTrue:[ |
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
451 |
"/ result := TestResult defaultResultClass new. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
452 |
"/ result passed add: test. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
453 |
"/ suiteAndResult := SuiteAndResult suite: suite result: result. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
454 |
result passedOutcomes add: test. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
455 |
self resultHolder value:suiteAndResult; changed. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
456 |
] ifFalse:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
457 |
(test class testSelectorFailed:test selector) ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
458 |
"/ result := TestResult defaultResultClass new. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
459 |
"/ result failures add: test. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
460 |
"/ suiteAndResult := SuiteAndResult suite: suite result: result. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
461 |
result failureOutcomes add: test. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
462 |
self resultHolder value:suiteAndResult; changed. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
463 |
] |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
464 |
] |
12055 | 465 |
]. |
466 |
] ensure:[ |
|
467 |
self runningHolder value:false. |
|
468 |
]. |
|
9954 | 469 |
|
470 |
"Created: / 15-03-2010 / 15:43:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10243
f8b2067424ed
changed: #debug: bug fix: if the test pass when debugging, update the UI
vrany
parents:
10201
diff
changeset
|
471 |
"Modified: / 07-07-2011 / 11:33:48 / Jan Vrany <jan.vrant@fit.cvut,cz>" |
11553 | 472 |
"Modified: / 04-06-2012 / 19:46:38 / cg" |
13847 | 473 |
"Modified: / 03-12-2012 / 14:02:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
9954 | 474 |
! |
475 |
||
476 |
run |
|
10789 | 477 |
|suite| |
9954 | 478 |
|
10789 | 479 |
resultHolder value isNil ifTrue:[ |
480 |
suite := self suiteForRun |
|
481 |
] ifFalse:[ |
|
482 |
suite := resultHolder value suiteForRun |
|
483 |
]. |
|
484 |
self run:suite |
|
9954 | 485 |
|
486 |
"Created: / 10-03-2010 / 19:42:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10647
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
487 |
"Modified: / 22-08-2011 / 09:58:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10789 | 488 |
"Modified: / 09-10-2011 / 10:56:39 / cg" |
9954 | 489 |
! |
490 |
||
10175 | 491 |
run:suite |
13847 | 492 |
^self run: suite debug: false |
493 |
||
494 |
"Created: / 11-03-2010 / 10:22:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
495 |
"Modified: / 09-06-2012 / 20:23:58 / cg" |
|
496 |
"Modified: / 03-12-2012 / 13:59:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
497 |
! |
|
498 |
||
499 |
run:suite debug: debug |
|
11552 | 500 |
|suiteAndResult numTests| |
9954 | 501 |
|
10201 | 502 |
numTests := suite tests size. |
503 |
numTests == 0 ifTrue:[ |
|
10175 | 504 |
^ self |
505 |
]. |
|
9954 | 506 |
|
11552 | 507 |
self stop. |
508 |
||
509 |
testProcess := [ |
|
13847 | 510 |
|result incr run| |
9954 | 511 |
|
13847 | 512 |
result := debug ifFalse:[TestResult new] ifTrue:[TestResultForRunWithDebug]. |
10175 | 513 |
[ |
11552 | 514 |
self runningHolder value:true. |
11570 | 515 |
self progressIndicatorShownHolder value:(numTests > 1). |
10175 | 516 |
self progressHolder value:0. |
10201 | 517 |
incr := 100 / numTests. |
10175 | 518 |
run := 0. |
519 |
result := suite |
|
13847 | 520 |
run: result |
521 |
beforeEachDo:[:test :result | |
|
10175 | 522 |
infoHolder notNil ifTrue:[ |
523 |
infoHolder value:('Running "%1-%2"...' |
|
524 |
bindWith:test name |
|
525 |
with:test getTestName allBold) |
|
526 |
] |
|
527 |
] |
|
528 |
afterEachDo:[:test :result | |
|
529 |
run := run + 1. |
|
10184 | 530 |
self progressHolder value:(incr * run) truncated "rounded". |
10175 | 531 |
infoHolder notNil ifTrue:[ |
532 |
infoHolder value:('Done.') |
|
13847 | 533 |
] |
534 |
] |
|
535 |
debug: debug. |
|
10175 | 536 |
suiteAndResult := SuiteAndResult suite:suite result:result. |
537 |
] ensure:[ |
|
11553 | 538 |
self progressIndicatorShownHolder value:false. |
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
539 |
self resultHolder setValue:nil; value:suiteAndResult; changed. |
10175 | 540 |
self runningHolder value:false. |
541 |
] |
|
542 |
] newProcess. |
|
11552 | 543 |
|
544 |
testProcess priority:(Processor userBackgroundPriority). |
|
545 |
testProcess resume. |
|
9954 | 546 |
|
13847 | 547 |
"Created: / 03-12-2012 / 13:59:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
9954 | 548 |
! |
549 |
||
550 |
runAll |
|
551 |
||
11552 | 552 |
self run: (self suiteForRunAll). |
9954 | 553 |
|
554 |
"Created: / 10-03-2010 / 19:42:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
555 |
"Modified: / 15-03-2010 / 13:12:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11552 | 556 |
"Modified: / 04-06-2012 / 19:00:14 / cg" |
557 |
! |
|
558 |
||
559 |
runFailed |
|
560 |
self run: self suiteForRunFailed. |
|
561 |
||
562 |
"Created: / 04-06-2012 / 18:32:19 / cg" |
|
10178 | 563 |
! |
564 |
||
565 |
runWithDebug |
|
566 |
"/ cg: I really do not want to run them twice to get a debugger |
|
567 |
"/ - I want to run them either with a debugger coming right away, or not. |
|
568 |
||
10606 | 569 |
| suiteAndResult suite| |
10178 | 570 |
|
571 |
suiteAndResult := self resultHolder value. |
|
10789 | 572 |
suiteAndResult isNil ifTrue:[ |
573 |
suite := self suiteForRun. |
|
574 |
] ifFalse:[ |
|
575 |
suite := suiteAndResult suiteForRun. |
|
576 |
]. |
|
10608 | 577 |
|
13847 | 578 |
self run: suite debug: true |
10178 | 579 |
|
580 |
||
581 |
||
582 |
"/ suiteAndResult suite tests size ~= 1 ifTrue:[^self breakPoint: #jv]. |
|
583 |
"/ [suiteAndResult suite tests anyOne debug] fork |
|
584 |
||
585 |
"Created: / 05-07-2011 / 18:45:43 / cg" |
|
10789 | 586 |
"Modified: / 09-10-2011 / 10:55:46 / cg" |
13847 | 587 |
"Modified: / 03-12-2012 / 13:59:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
11552 | 588 |
! |
589 |
||
590 |
stop |
|
591 |
|p| |
|
592 |
||
593 |
(p := testProcess) notNil ifTrue:[ |
|
594 |
testProcess := nil. |
|
595 |
p terminate |
|
596 |
]. |
|
597 |
||
598 |
"Created: / 04-06-2012 / 18:34:07 / cg" |
|
9954 | 599 |
! ! |
600 |
||
601 |
!TestRunnerEmbedded methodsFor:'aspects'! |
|
602 |
||
603 |
debugVisibleAspect |
|
10432 | 604 |
^ BlockValue |
605 |
with:[:model | |
|
606 |
model notNil |
|
607 |
and:[ model testCount == 1 |
|
608 |
and:[ model hasFailuresOrErrors ]] |
|
609 |
] |
|
610 |
argument:self resultHolder |
|
9954 | 611 |
|
612 |
"Created: / 15-03-2010 / 15:40:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10432 | 613 |
"Modified: / 02-08-2011 / 18:19:14 / cg" |
9954 | 614 |
! |
615 |
||
616 |
methodGeneratorHolder |
|
617 |
"return/create the 'methodGeneratorHolder' value holder (automatically generated)" |
|
618 |
||
619 |
methodGeneratorHolder isNil ifTrue:[ |
|
620 |
methodGeneratorHolder := ValueHolder new. |
|
621 |
methodGeneratorHolder addDependent:self. |
|
622 |
]. |
|
623 |
^ methodGeneratorHolder |
|
624 |
! |
|
625 |
||
626 |
methodGeneratorHolder:something |
|
627 |
"set the 'methodGeneratorHolder' value holder (automatically generated)" |
|
628 |
||
629 |
|oldValue newValue| |
|
630 |
||
631 |
methodGeneratorHolder notNil ifTrue:[ |
|
632 |
oldValue := methodGeneratorHolder value. |
|
633 |
methodGeneratorHolder removeDependent:self. |
|
634 |
]. |
|
635 |
methodGeneratorHolder := something. |
|
636 |
methodGeneratorHolder notNil ifTrue:[ |
|
637 |
methodGeneratorHolder addDependent:self. |
|
638 |
]. |
|
639 |
newValue := methodGeneratorHolder value. |
|
640 |
oldValue ~~ newValue ifTrue:[ |
|
641 |
self update:#value with:newValue from:methodGeneratorHolder. |
|
642 |
]. |
|
643 |
! |
|
644 |
||
11552 | 645 |
notRunningHolder |
646 |
^ BlockValue forLogicalNot:(self runningHolder) |
|
647 |
||
648 |
"Created: / 04-06-2012 / 18:38:48 / cg" |
|
649 |
! |
|
650 |
||
9954 | 651 |
progressHolder |
652 |
"return/create the 'progressHolder' value holder (automatically generated)" |
|
653 |
||
654 |
progressHolder isNil ifTrue:[ |
|
655 |
progressHolder := ValueHolder new. |
|
656 |
]. |
|
657 |
^ progressHolder |
|
658 |
! |
|
659 |
||
11553 | 660 |
progressIndicatorShownHolder |
661 |
progressIndicatorShownHolder isNil ifTrue:[ |
|
662 |
progressIndicatorShownHolder := ValueHolder with: false. |
|
663 |
]. |
|
664 |
^ progressIndicatorShownHolder |
|
665 |
||
666 |
"Modified: / 15-03-2010 / 20:29:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
667 |
"Modified (comment): / 04-06-2012 / 18:38:52 / cg" |
|
668 |
"Created: / 04-06-2012 / 19:42:59 / cg" |
|
669 |
! |
|
670 |
||
9954 | 671 |
resultBackgroundColorAspect |
672 |
<resource: #uiAspect> |
|
673 |
resultBackgroundColorHolder isNil ifTrue:[ |
|
10165
fd4de5081321
changed: #resultBackgroundColorAspect
Claus Gittinger <cg@exept.de>
parents:
10092
diff
changeset
|
674 |
resultBackgroundColorHolder := BlockValue |
fd4de5081321
changed: #resultBackgroundColorAspect
Claus Gittinger <cg@exept.de>
parents:
10092
diff
changeset
|
675 |
with:[:result :running | |
fd4de5081321
changed: #resultBackgroundColorAspect
Claus Gittinger <cg@exept.de>
parents:
10092
diff
changeset
|
676 |
running ifTrue:[ |
fd4de5081321
changed: #resultBackgroundColorAspect
Claus Gittinger <cg@exept.de>
parents:
10092
diff
changeset
|
677 |
self class currentlyRunningColor "/ View defaultBackgroundColor |
fd4de5081321
changed: #resultBackgroundColorAspect
Claus Gittinger <cg@exept.de>
parents:
10092
diff
changeset
|
678 |
] ifFalse:[ |
fd4de5081321
changed: #resultBackgroundColorAspect
Claus Gittinger <cg@exept.de>
parents:
10092
diff
changeset
|
679 |
result ifNil:[ self class notRunColor ] ifNotNil:[ result color ] |
11553 | 680 |
]. |
10165
fd4de5081321
changed: #resultBackgroundColorAspect
Claus Gittinger <cg@exept.de>
parents:
10092
diff
changeset
|
681 |
] |
fd4de5081321
changed: #resultBackgroundColorAspect
Claus Gittinger <cg@exept.de>
parents:
10092
diff
changeset
|
682 |
argument:self resultHolder |
fd4de5081321
changed: #resultBackgroundColorAspect
Claus Gittinger <cg@exept.de>
parents:
10092
diff
changeset
|
683 |
argument:self runningHolder. |
fd4de5081321
changed: #resultBackgroundColorAspect
Claus Gittinger <cg@exept.de>
parents:
10092
diff
changeset
|
684 |
resultBackgroundColorHolder |
fd4de5081321
changed: #resultBackgroundColorAspect
Claus Gittinger <cg@exept.de>
parents:
10092
diff
changeset
|
685 |
onChangeEvaluate:[ |
fd4de5081321
changed: #resultBackgroundColorAspect
Claus Gittinger <cg@exept.de>
parents:
10092
diff
changeset
|
686 |
runnerPanel |
fd4de5081321
changed: #resultBackgroundColorAspect
Claus Gittinger <cg@exept.de>
parents:
10092
diff
changeset
|
687 |
ifNotNil:[ runnerPanel backgroundColor:resultBackgroundColorHolder value ] |
fd4de5081321
changed: #resultBackgroundColorAspect
Claus Gittinger <cg@exept.de>
parents:
10092
diff
changeset
|
688 |
]. |
9954 | 689 |
]. |
690 |
^ resultBackgroundColorHolder. |
|
691 |
||
692 |
"Created: / 15-03-2010 / 15:22:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
693 |
"Modified: / 15-03-2010 / 21:02:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11553 | 694 |
"Modified: / 04-06-2012 / 19:40:11 / cg" |
9954 | 695 |
! |
696 |
||
697 |
resultHolder |
|
698 |
"return/create the 'resultHolder' value holder (automatically generated)" |
|
699 |
||
700 |
resultHolder isNil ifTrue:[ |
|
701 |
resultHolder := ValueHolder new. |
|
702 |
]. |
|
703 |
^ resultHolder |
|
704 |
! |
|
705 |
||
706 |
resultInfoAspect |
|
10432 | 707 |
^ BlockValue |
708 |
with:[:model | model isNil ifTrue:[ '' ] ifFalse:[ model info ] ] |
|
709 |
argument:self resultHolder |
|
9954 | 710 |
|
711 |
"Created: / 15-03-2010 / 20:22:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10432 | 712 |
"Modified: / 02-08-2011 / 18:20:26 / cg" |
9954 | 713 |
! |
714 |
||
715 |
resultNameAspect |
|
10432 | 716 |
^ BlockValue |
717 |
with:[:model | model isNil ifTrue:[ 'Run the tests!!' ] ifFalse:[ model name ] ] |
|
718 |
argument:self resultHolder |
|
9954 | 719 |
|
720 |
"Created: / 15-03-2010 / 14:57:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
721 |
"Modified: / 15-03-2010 / 20:17:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10432 | 722 |
"Modified: / 02-08-2011 / 18:20:38 / cg" |
9954 | 723 |
! |
724 |
||
725 |
runAllEnabledHolder |
|
726 |
||
11552 | 727 |
^ self notRunningHolder |
9954 | 728 |
|
729 |
"Created: / 07-09-2010 / 09:15:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11552 | 730 |
"Modified: / 04-06-2012 / 18:40:46 / cg" |
9954 | 731 |
! |
732 |
||
733 |
runEnabledHolder |
|
734 |
^BlockValue |
|
735 |
with: |
|
11552 | 736 |
[:result :running | |
737 |
||
738 |
running not |
|
739 |
and:[ result notNil |
|
740 |
and:[ result testCount > 0 ]] |
|
741 |
] |
|
9954 | 742 |
argument: self resultHolder |
11552 | 743 |
argument: self runningHolder |
9954 | 744 |
|
745 |
"Created: / 07-09-2010 / 09:15:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11552 | 746 |
"Modified: / 04-06-2012 / 18:52:41 / cg" |
747 |
! |
|
748 |
||
749 |
runFailedEnabledHolder |
|
750 |
^BlockValue |
|
751 |
with: |
|
752 |
[:running | |
|
753 |
||
754 |
|result| |
|
755 |
||
11584 | 756 |
running not |
11600
53100c5a7473
changed: #runFailedEnabledHolder (fix for environments without SUnit loaded)
vrany
parents:
11584
diff
changeset
|
757 |
and:[ TestResult notNil |
11584 | 758 |
and:[ TestResult isLoaded |
759 |
and:[ result := self resultForSuite:self suiteForRunAll. result notNil |
|
11600
53100c5a7473
changed: #runFailedEnabledHolder (fix for environments without SUnit loaded)
vrany
parents:
11584
diff
changeset
|
760 |
and:[ result hasFailuresOrErrors ]]]] |
11552 | 761 |
] |
762 |
"/ argument: self resultHolder |
|
763 |
argument: self runningHolder |
|
764 |
||
765 |
"Created: / 07-09-2010 / 09:15:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
766 |
"Created: / 04-06-2012 / 18:28:12 / cg" |
|
11600
53100c5a7473
changed: #runFailedEnabledHolder (fix for environments without SUnit loaded)
vrany
parents:
11584
diff
changeset
|
767 |
"Modified: / 18-07-2012 / 09:55:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
9954 | 768 |
! |
769 |
||
770 |
runningHolder |
|
771 |
runningHolder isNil ifTrue:[ |
|
772 |
runningHolder := ValueHolder with: false. |
|
773 |
]. |
|
774 |
^ runningHolder |
|
775 |
||
776 |
"Modified: / 15-03-2010 / 20:29:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11552 | 777 |
"Modified (comment): / 04-06-2012 / 18:38:52 / cg" |
9954 | 778 |
! |
779 |
||
780 |
selectedClassesHolder |
|
781 |
"return/create the 'selectedClassesHolder' value holder (automatically generated)" |
|
782 |
||
783 |
selectedClassesHolder isNil ifTrue:[ |
|
784 |
selectedClassesHolder := ValueHolder new. |
|
785 |
selectedClassesHolder addDependent:self. |
|
786 |
]. |
|
787 |
^ selectedClassesHolder |
|
788 |
! |
|
789 |
||
790 |
selectedClassesHolder:something |
|
791 |
"set the 'selectedClassesHolder' value holder (automatically generated)" |
|
792 |
||
793 |
|oldValue newValue| |
|
794 |
||
795 |
selectedClassesHolder notNil ifTrue:[ |
|
796 |
oldValue := selectedClassesHolder value. |
|
797 |
selectedClassesHolder removeDependent:self. |
|
798 |
]. |
|
799 |
selectedClassesHolder := something. |
|
800 |
selectedClassesHolder notNil ifTrue:[ |
|
801 |
selectedClassesHolder addDependent:self. |
|
802 |
]. |
|
803 |
newValue := selectedClassesHolder value. |
|
804 |
oldValue ~~ newValue ifTrue:[ |
|
805 |
self update:#value with:newValue from:selectedClassesHolder. |
|
806 |
]. |
|
807 |
! |
|
808 |
||
809 |
selectedMethodsHolder |
|
810 |
"return/create the 'selectedMethodsHolder' value holder (automatically generated)" |
|
811 |
||
812 |
selectedMethodsHolder isNil ifTrue:[ |
|
813 |
selectedMethodsHolder := ValueHolder new. |
|
814 |
selectedMethodsHolder addDependent:self. |
|
815 |
]. |
|
816 |
^ selectedMethodsHolder |
|
817 |
! |
|
818 |
||
819 |
selectedMethodsHolder:something |
|
820 |
"set the 'selectedMethodsHolder' value holder (automatically generated)" |
|
821 |
||
822 |
|oldValue newValue| |
|
823 |
||
824 |
selectedMethodsHolder notNil ifTrue:[ |
|
825 |
oldValue := selectedMethodsHolder value. |
|
826 |
selectedMethodsHolder removeDependent:self. |
|
827 |
]. |
|
828 |
selectedMethodsHolder := something. |
|
829 |
selectedMethodsHolder notNil ifTrue:[ |
|
830 |
selectedMethodsHolder addDependent:self. |
|
831 |
]. |
|
832 |
newValue := selectedMethodsHolder value. |
|
833 |
oldValue ~~ newValue ifTrue:[ |
|
834 |
self update:#value with:newValue from:selectedMethodsHolder. |
|
835 |
]. |
|
836 |
! |
|
837 |
||
838 |
selectedProtocolsHolder |
|
839 |
"return/create the 'selectedProtocolsHolder' value holder (automatically generated)" |
|
840 |
||
841 |
selectedProtocolsHolder isNil ifTrue:[ |
|
842 |
selectedProtocolsHolder := ValueHolder new. |
|
843 |
selectedProtocolsHolder addDependent:self. |
|
844 |
]. |
|
845 |
^ selectedProtocolsHolder |
|
846 |
! |
|
847 |
||
848 |
selectedProtocolsHolder:something |
|
849 |
"set the 'selectedProtocolsHolder' value holder (automatically generated)" |
|
850 |
||
851 |
|oldValue newValue| |
|
852 |
||
853 |
selectedProtocolsHolder notNil ifTrue:[ |
|
854 |
oldValue := selectedProtocolsHolder value. |
|
855 |
selectedProtocolsHolder removeDependent:self. |
|
856 |
]. |
|
857 |
selectedProtocolsHolder := something. |
|
858 |
selectedProtocolsHolder notNil ifTrue:[ |
|
859 |
selectedProtocolsHolder addDependent:self. |
|
860 |
]. |
|
861 |
newValue := selectedProtocolsHolder value. |
|
862 |
oldValue ~~ newValue ifTrue:[ |
|
863 |
self update:#value with:newValue from:selectedProtocolsHolder. |
|
864 |
]. |
|
11552 | 865 |
! |
866 |
||
867 |
stopEnabledHolder |
|
868 |
^ self runningHolder |
|
869 |
||
870 |
"Created: / 04-06-2012 / 18:29:01 / cg" |
|
9954 | 871 |
! ! |
872 |
||
873 |
!TestRunnerEmbedded methodsFor:'change & update'! |
|
874 |
||
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
875 |
invalidateSuiteAndResult |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
876 |
self resultHolder value:nil. |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
877 |
! |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
878 |
|
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
879 |
invalidateTestCases |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
880 |
allTestCases := nil. |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
881 |
! |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
882 |
|
9954 | 883 |
update:aspect with:param from: sender |
884 |
"Invoked when an object that I depend upon sends a change notification." |
|
885 |
||
886 |
sender == selectedClassesHolder ifTrue:[ |
|
887 |
self |
|
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
888 |
invalidateTestCases; "/ updateTestSuite; |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
889 |
invalidateSuiteAndResult; "/ updateTestSuiteAndResult; |
9954 | 890 |
updateVisibility. |
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
891 |
self hasTestCaseSelected ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
892 |
self enqueueDelayedAction:[ self updateTestCases; updateSuiteAndResult ]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
893 |
]. |
9954 | 894 |
^ self. |
895 |
]. |
|
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
896 |
self hasTestCaseSelected ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
897 |
sender == selectedProtocolsHolder ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
898 |
self invalidateSuiteAndResult. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
899 |
self enqueueDelayedAction:[ self updateSuiteAndResult ]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
900 |
^self |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
901 |
]. |
9954 | 902 |
|
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
903 |
sender == selectedMethodsHolder ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
904 |
self invalidateSuiteAndResult. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
905 |
self enqueueDelayedAction:[ self updateSuiteAndResult ]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
906 |
^self |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
907 |
]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
908 |
sender == methodGeneratorHolder ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
909 |
self invalidateSuiteAndResult. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
910 |
self enqueueDelayedAction:[ self updateSuiteAndResult ]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
911 |
^self |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
912 |
]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
913 |
|
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
914 |
sender == Smalltalk ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
915 |
aspect == #lastTestRunResult ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
916 |
allTestCases notNil ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
917 |
(allTestCases includesIdentical: param first) ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
918 |
self invalidateSuiteAndResult. "/ updateTestSuiteAndResult. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
919 |
self enqueueDelayedAction:[ self updateSuiteAndResult ]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
920 |
^self |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
921 |
] |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
922 |
]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
923 |
] |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
924 |
]. |
9954 | 925 |
]. |
926 |
||
927 |
super update:aspect with:param from: sender |
|
928 |
||
10886
8619db59aff4
bug fix in: #update:with:from: (selectedTestCases ivar might be nil)
vrany
parents:
10862
diff
changeset
|
929 |
"Modified: / 20-11-2011 / 12:40:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
11552 | 930 |
"Modified: / 04-06-2012 / 19:03:34 / cg" |
9954 | 931 |
! |
932 |
||
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
933 |
updateSuiteAndResult |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
934 |
| suite suiteAndResult | |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
935 |
|
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
936 |
self runningHolder value ifTrue:[^self]. |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
937 |
self allTestCases isEmptyOrNil ifTrue:[^self]. |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
938 |
|
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
939 |
suiteAndResult := SuiteAndResult |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
940 |
suite: (suite := self suiteForRun) |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
941 |
result: (self resultForSuite: suite). |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
942 |
self resultHolder value: suiteAndResult. |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
943 |
|
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
944 |
"Created: / 15-03-2010 / 19:41:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
945 |
"Modified: / 15-03-2010 / 20:55:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
946 |
"Modified: / 04-06-2012 / 19:03:15 / cg" |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
947 |
! |
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
948 |
|
9954 | 949 |
updateTestCases |
13847 | 950 |
allTestCases := ((self selectedClassesHolder value ? #()) |
951 |
select:[:cls | self isTestCaseLike:cls ]). |
|
11552 | 952 |
allTestCases := allTestCases asArray |
9954 | 953 |
|
954 |
"Created: / 11-03-2010 / 10:31:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11197 | 955 |
"Modified: / 24-01-2012 / 22:09:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
11552 | 956 |
"Modified: / 04-06-2012 / 19:02:52 / cg" |
9954 | 957 |
! |
958 |
||
13847 | 959 |
updateTestSuiteAndResult |
960 |
||
961 |
| suite suiteAndResult | |
|
962 |
self runningHolder value ifTrue:[^self]. |
|
963 |
allTestCases isEmptyOrNil ifTrue:[^self]. |
|
964 |
suiteAndResult := SuiteAndResult |
|
965 |
suite: (suite := self suiteForRun) |
|
966 |
result: (self resultForSuite: suite). |
|
967 |
self resultHolder value: suiteAndResult. |
|
968 |
||
969 |
"Created: / 15-03-2010 / 19:41:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
970 |
"Modified: / 15-03-2010 / 20:55:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
971 |
"Modified: / 04-06-2012 / 19:03:15 / cg" |
|
972 |
! |
|
973 |
||
9954 | 974 |
updateVisibility |
975 |
||
976 |
self hasTestCaseSelected |
|
977 |
ifTrue:[self show] |
|
13847 | 978 |
ifFalse:[self hide] |
9954 | 979 |
|
980 |
"Created: / 11-03-2010 / 09:02:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
981 |
! ! |
|
982 |
||
983 |
!TestRunnerEmbedded methodsFor:'hooks'! |
|
984 |
||
10862 | 985 |
commonPostOpen |
986 |
||
987 |
Smalltalk addDependent: self. |
|
988 |
||
989 |
"Created: / 17-11-2011 / 20:59:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
990 |
! |
|
991 |
||
9954 | 992 |
postBuildRunnerPanel: aView |
993 |
||
994 |
runnerPanel := aView. |
|
995 |
runnerPanel backgroundColor: self resultBackgroundColorAspect value |
|
996 |
||
997 |
"Created: / 15-03-2010 / 14:26:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10862 | 998 |
! |
999 |
||
1000 |
releaseAsSubCanvas |
|
1001 |
||
1002 |
Smalltalk removeDependent: self. |
|
1003 |
||
1004 |
"Created: / 17-11-2011 / 21:03:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
9954 | 1005 |
! ! |
1006 |
||
1007 |
!TestRunnerEmbedded methodsFor:'private'! |
|
1008 |
||
1009 |
hide |
|
1010 |
||
1011 |
self visibility: false height: 0 |
|
1012 |
||
1013 |
"Created: / 11-03-2010 / 09:07:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1014 |
! |
|
1015 |
||
1016 |
isTestCaseLike:cls |
|
1017 |
||
1018 |
^(super isTestCaseLike: cls) and: |
|
1019 |
[(cls askFor: #isAbstract) not] |
|
1020 |
||
1021 |
"Modified: / 04-03-2011 / 06:54:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1022 |
! |
|
1023 |
||
12864
2d6b4213f793
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12762
diff
changeset
|
1024 |
postBuildProgressIndicator:aWidget |
2d6b4213f793
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12762
diff
changeset
|
1025 |
progressIndicator := aWidget |
2d6b4213f793
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12762
diff
changeset
|
1026 |
! |
2d6b4213f793
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12762
diff
changeset
|
1027 |
|
9954 | 1028 |
show |
1029 |
||
1030 |
self visibility: true height: 50 |
|
1031 |
||
1032 |
"Created: / 11-03-2010 / 09:07:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1033 |
! |
|
1034 |
||
10564
4e109c7b8ee8
comment/format in: #visibility:height:
Claus Gittinger <cg@exept.de>
parents:
10563
diff
changeset
|
1035 |
visibility:visibility height:height |
4e109c7b8ee8
comment/format in: #visibility:height:
Claus Gittinger <cg@exept.de>
parents:
10563
diff
changeset
|
1036 |
|container list h| |
9954 | 1037 |
|
10564
4e109c7b8ee8
comment/format in: #visibility:height:
Claus Gittinger <cg@exept.de>
parents:
10563
diff
changeset
|
1038 |
(container := self window container) ifNil:[ ^ self ]. |
4e109c7b8ee8
comment/format in: #visibility:height:
Claus Gittinger <cg@exept.de>
parents:
10563
diff
changeset
|
1039 |
h := visibility ifFalse:[0] ifTrue:[ height ]. |
4e109c7b8ee8
comment/format in: #visibility:height:
Claus Gittinger <cg@exept.de>
parents:
10563
diff
changeset
|
1040 |
container isVisible == visibility ifFalse:[ |
4e109c7b8ee8
comment/format in: #visibility:height:
Claus Gittinger <cg@exept.de>
parents:
10563
diff
changeset
|
1041 |
container isVisible:visibility |
4e109c7b8ee8
comment/format in: #visibility:height:
Claus Gittinger <cg@exept.de>
parents:
10563
diff
changeset
|
1042 |
]. |
9954 | 1043 |
list := container container subViews first. |
10564
4e109c7b8ee8
comment/format in: #visibility:height:
Claus Gittinger <cg@exept.de>
parents:
10563
diff
changeset
|
1044 |
(list layout bottomOffset ~= height negated) ifTrue:[ |
4e109c7b8ee8
comment/format in: #visibility:height:
Claus Gittinger <cg@exept.de>
parents:
10563
diff
changeset
|
1045 |
list layout:((list layout) |
4e109c7b8ee8
comment/format in: #visibility:height:
Claus Gittinger <cg@exept.de>
parents:
10563
diff
changeset
|
1046 |
bottomOffset:height negated; |
4e109c7b8ee8
comment/format in: #visibility:height:
Claus Gittinger <cg@exept.de>
parents:
10563
diff
changeset
|
1047 |
yourself) |
4e109c7b8ee8
comment/format in: #visibility:height:
Claus Gittinger <cg@exept.de>
parents:
10563
diff
changeset
|
1048 |
]. |
9954 | 1049 |
|
1050 |
"Created: / 11-03-2010 / 09:51:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1051 |
! ! |
|
1052 |
||
1053 |
!TestRunnerEmbedded methodsFor:'queries'! |
|
1054 |
||
1055 |
hasTestCaseSelected |
|
1056 |
||
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
1057 |
^self allTestCases notEmptyOrNil |
9954 | 1058 |
|
1059 |
"Created: / 11-03-2010 / 09:06:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1060 |
"Modified: / 15-03-2010 / 20:54:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10454 | 1061 |
"Modified: / 04-08-2011 / 20:42:10 / cg" |
9954 | 1062 |
! ! |
1063 |
||
1064 |
!TestRunnerEmbedded methodsFor:'utilities'! |
|
1065 |
||
10432 | 1066 |
resultForSuite:suite |
1067 |
|result| |
|
9954 | 1068 |
|
11925
7e2860fce495
use TestResultForSTX in SUnit runner
Claus Gittinger <cg@exept.de>
parents:
11600
diff
changeset
|
1069 |
result := TestResult defaultResultClass new. |
10432 | 1070 |
suite tests do:[:test | |
10606 | 1071 |
| sel cls | |
10432 | 1072 |
|
1073 |
sel := test selector. |
|
10606 | 1074 |
cls := test class. |
1075 |
(cls testSelectorPassed:sel) ifTrue:[ |
|
1076 |
result passedOutcomes add: (cls rememberedOutcomeFor: sel) |
|
10432 | 1077 |
] ifFalse:[ |
10606 | 1078 |
(cls testSelectorError:sel) ifTrue:[ |
1079 |
result errorOutcomes add:(cls rememberedOutcomeFor: sel) |
|
10432 | 1080 |
] ifFalse:[ |
10606 | 1081 |
(cls testSelectorFailed:sel) ifTrue:[ |
1082 |
result failureOutcomes add:(cls rememberedOutcomeFor: sel) |
|
10432 | 1083 |
] |
1084 |
] |
|
1085 |
] |
|
1086 |
]. |
|
1087 |
^ result |
|
9954 | 1088 |
|
1089 |
"Created: / 15-03-2010 / 19:46:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10432 | 1090 |
"Modified: / 02-08-2011 / 18:20:00 / cg" |
10606 | 1091 |
"Modified: / 20-08-2011 / 14:30:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
9954 | 1092 |
! |
1093 |
||
1094 |
suiteForRun |
|
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1095 |
"if methods are selected, a suite for those methods is built and returned. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1096 |
If protocoly are selected, a suite for all methods in those protocols |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1097 |
is built and returned. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1098 |
Otherwise, a suite for all methods in the class is built and returned" |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1099 |
|
13847 | 1100 |
| methods testMethods protocols suite selectedClass | |
10374 | 1101 |
|
1102 |
selectedClass := self theSingleTestCase. |
|
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
1103 |
|
10563
f77d63752e6a
comment/format in: #suiteForRunAll
Claus Gittinger <cg@exept.de>
parents:
10454
diff
changeset
|
1104 |
(methods := selectedMethodsHolder value) notEmptyOrNil ifTrue:[ |
13847 | 1105 |
testMethods := self selectedTestMethods. |
1106 |
suite := TestSuite named: (self suiteNameFromMethods: testMethods). |
|
1107 |
testMethods do:[:mthd| |
|
10563
f77d63752e6a
comment/format in: #suiteForRunAll
Claus Gittinger <cg@exept.de>
parents:
10454
diff
changeset
|
1108 |
| class selector | |
10374 | 1109 |
class := selectedClass ifNil:[mthd mclass]. |
10563
f77d63752e6a
comment/format in: #suiteForRunAll
Claus Gittinger <cg@exept.de>
parents:
10454
diff
changeset
|
1110 |
suite addTest: (class asTestCase selector: mthd selector) |
f77d63752e6a
comment/format in: #suiteForRunAll
Claus Gittinger <cg@exept.de>
parents:
10454
diff
changeset
|
1111 |
]. |
f77d63752e6a
comment/format in: #suiteForRunAll
Claus Gittinger <cg@exept.de>
parents:
10454
diff
changeset
|
1112 |
^suite |
f77d63752e6a
comment/format in: #suiteForRunAll
Claus Gittinger <cg@exept.de>
parents:
10454
diff
changeset
|
1113 |
]. |
9954 | 1114 |
|
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1115 |
(protocols := selectedProtocolsHolder value) notEmptyOrNil ifTrue:[ |
10563
f77d63752e6a
comment/format in: #suiteForRunAll
Claus Gittinger <cg@exept.de>
parents:
10454
diff
changeset
|
1116 |
suite := TestSuite named: (self suiteNameFromProtocols: protocols). |
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
1117 |
(self selectedTestMethodsFromProtocols: protocols inClass:selectedClass) do:[:mthd| |
10563
f77d63752e6a
comment/format in: #suiteForRunAll
Claus Gittinger <cg@exept.de>
parents:
10454
diff
changeset
|
1118 |
| class selector | |
13338
da80957ff486
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12864
diff
changeset
|
1119 |
class := selectedClass ifNil:[mthd mclass]. |
da80957ff486
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12864
diff
changeset
|
1120 |
|
da80957ff486
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12864
diff
changeset
|
1121 |
suite addTest: (class "mthd mclass" asTestCase selector: mthd selector) |
10563
f77d63752e6a
comment/format in: #suiteForRunAll
Claus Gittinger <cg@exept.de>
parents:
10454
diff
changeset
|
1122 |
]. |
f77d63752e6a
comment/format in: #suiteForRunAll
Claus Gittinger <cg@exept.de>
parents:
10454
diff
changeset
|
1123 |
^suite |
f77d63752e6a
comment/format in: #suiteForRunAll
Claus Gittinger <cg@exept.de>
parents:
10454
diff
changeset
|
1124 |
]. |
10374 | 1125 |
|
9954 | 1126 |
^self suiteForRunAll |
1127 |
||
1128 |
"Created: / 15-03-2010 / 13:13:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10454 | 1129 |
"Modified: / 04-08-2011 / 19:06:42 / cg" |
13847 | 1130 |
"Modified: / 02-11-2012 / 11:17:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
9954 | 1131 |
! |
1132 |
||
1133 |
suiteForRunAll |
|
1134 |
|suite| |
|
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
1135 |
|
11552 | 1136 |
allTestCases isNil ifTrue:[ |
1137 |
self updateTestCases. |
|
1138 |
]. |
|
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
1139 |
suite := TestSuite named:(self suiteNameFromClasses: self allTestCases). |
11552 | 1140 |
|
1141 |
allTestCases do:[:testCase | |
|
10563
f77d63752e6a
comment/format in: #suiteForRunAll
Claus Gittinger <cg@exept.de>
parents:
10454
diff
changeset
|
1142 |
suite addTests:(self buildSuiteFromClass:testCase) tests |
f77d63752e6a
comment/format in: #suiteForRunAll
Claus Gittinger <cg@exept.de>
parents:
10454
diff
changeset
|
1143 |
]. |
9954 | 1144 |
^suite |
1145 |
||
1146 |
"Modified: / 04-03-2011 / 06:57:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11552 | 1147 |
"Modified: / 04-06-2012 / 19:01:48 / cg" |
1148 |
! |
|
1149 |
||
1150 |
suiteForRunFailed |
|
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1151 |
|suite numTests| |
11552 | 1152 |
|
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
1153 |
suite := TestSuite named:(self suiteNameFromClasses: self allTestCases). |
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1154 |
numTests := 0. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1155 |
|
11966
6040753eab24
asynchronous update of testSuite and suiteAndResult
Claus Gittinger <cg@exept.de>
parents:
11925
diff
changeset
|
1156 |
self allTestCases do:[:testCase | |
11552 | 1157 |
(self buildSuiteFromClass:testCase) tests do:[:eachTest | |
1158 |
| sel cls | |
|
1159 |
||
1160 |
sel := eachTest selector. |
|
1161 |
cls := eachTest class. |
|
1162 |
(cls testSelectorPassed:sel) ifFalse:[ |
|
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1163 |
suite addTest:eachTest. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1164 |
numTests := numTests + 1. |
11552 | 1165 |
] |
1166 |
] |
|
1167 |
]. |
|
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1168 |
numTests == 1 ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1169 |
suite name:(suite tests first selector) |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1170 |
] ifFalse:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1171 |
suite name:(suite tests size printString,' tests') |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1172 |
]. |
11552 | 1173 |
^suite |
1174 |
||
1175 |
"Modified: / 04-03-2011 / 06:57:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1176 |
"Created: / 04-06-2012 / 18:32:40 / cg" |
|
9954 | 1177 |
! ! |
1178 |
||
1179 |
!TestRunnerEmbedded::SuiteAndResult class methodsFor:'instance creation'! |
|
1180 |
||
1181 |
suite: suite result: result |
|
1182 |
||
1183 |
^self new |
|
1184 |
suite: suite; |
|
1185 |
result: result. |
|
1186 |
||
1187 |
"Modified: / 15-03-2010 / 15:27:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1188 |
! ! |
|
1189 |
||
1190 |
!TestRunnerEmbedded::SuiteAndResult methodsFor:'accessing'! |
|
1191 |
||
1192 |
color |
|
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1193 |
|numTests numRun| |
9954 | 1194 |
|
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1195 |
self testCount > 0 ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1196 |
result notNil ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1197 |
self hasErrors ifTrue:[^TestRunnerEmbedded errorColor]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1198 |
self hasFailures ifTrue:[^TestRunnerEmbedded failedColor]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1199 |
self hasPassed ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1200 |
numTests := suite tests size. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1201 |
numRun := result passedCount + result failureCount + result errorCount. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1202 |
numRun = numTests ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1203 |
^TestRunnerEmbedded passedColor |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1204 |
] |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1205 |
]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1206 |
] |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1207 |
]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1208 |
^ TestRunnerEmbedded notRunColor |
9954 | 1209 |
|
1210 |
"Created: / 15-03-2010 / 15:24:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1211 |
"Modified: / 07-09-2010 / 08:25:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1212 |
! |
|
1213 |
||
1214 |
info |
|
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1215 |
|numTests numRun| |
9954 | 1216 |
|
1217 |
result ifNil:[^'']. |
|
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1218 |
|
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1219 |
numTests := suite tests size. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1220 |
numRun := result passedCount + result failureCount + result errorCount. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1221 |
"/ (result passedCount + result failureCount + result errorCount) = 1 ifTrue:[^'']. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1222 |
numRun == 0 ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1223 |
numTests == 1 ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1224 |
^'not run' |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1225 |
]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1226 |
^'%1 tests, 0 run' bindWith: numTests |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1227 |
]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1228 |
numRun < numTests ifTrue:[ |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1229 |
^'%1 tests, %2 run, %3 passed, %4 fail or error' |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1230 |
bindWith: numTests |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1231 |
with: numRun |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1232 |
with: result passedCount |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1233 |
with: (result failureCount+result errorCount) |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1234 |
]. |
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1235 |
|
9954 | 1236 |
^'%1 tests, %2 passed, %3 failed, %4 errors' |
12762
eeb5359c60d3
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12604
diff
changeset
|
1237 |
bindWith: numTests |
9954 | 1238 |
with: result passedCount |
1239 |
with: result failureCount |
|
1240 |
with: result errorCount |
|
1241 |
||
1242 |
"Created: / 15-03-2010 / 20:23:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1243 |
! |
|
1244 |
||
1245 |
name |
|
1246 |
||
1247 |
^suite name |
|
1248 |
||
1249 |
"Created: / 15-03-2010 / 15:12:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1250 |
! |
|
1251 |
||
1252 |
result |
|
1253 |
^ result |
|
1254 |
! |
|
1255 |
||
1256 |
result:aTestResult |
|
1257 |
result := aTestResult. |
|
1258 |
! |
|
1259 |
||
1260 |
suite |
|
1261 |
^ suite |
|
1262 |
! |
|
1263 |
||
1264 |
suite:aTestSuite |
|
1265 |
suite := aTestSuite. |
|
1266 |
! |
|
1267 |
||
10647
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
1268 |
suiteForRun |
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
1269 |
|
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
1270 |
| suiteForRun | |
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
1271 |
suiteForRun := suite class named: suite name. |
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
1272 |
suiteForRun addTests: |
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
1273 |
(suite tests collect:[:testCase|testCase class selector: testCase selector]). |
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
1274 |
^suiteForRun |
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
1275 |
|
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
1276 |
"Created: / 22-08-2011 / 09:56:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
1277 |
! |
1e9912f9a0d8
Embedded test runner no longer reuse old testcase instances
vrany
parents:
10608
diff
changeset
|
1278 |
|
9954 | 1279 |
testCount |
1280 |
||
1281 |
^suite tests size |
|
1282 |
||
1283 |
"Created: / 15-03-2010 / 15:44:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1284 |
! ! |
|
1285 |
||
1286 |
!TestRunnerEmbedded::SuiteAndResult methodsFor:'queries'! |
|
1287 |
||
1288 |
hasErrors |
|
1289 |
||
1290 |
^result errorCount > 0 |
|
1291 |
||
1292 |
"Created: / 15-03-2010 / 15:21:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1293 |
! |
|
1294 |
||
1295 |
hasFailures |
|
1296 |
||
1297 |
^result failureCount > 0 |
|
1298 |
||
1299 |
"Created: / 15-03-2010 / 15:21:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1300 |
! |
|
1301 |
||
1302 |
hasFailuresOrErrors |
|
1303 |
||
1304 |
^self hasErrors or:[self hasFailures] |
|
1305 |
||
1306 |
"Created: / 15-03-2010 / 15:45:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1307 |
! |
|
1308 |
||
1309 |
hasPassed |
|
1310 |
||
1311 |
^result passedCount > 0 |
|
1312 |
||
1313 |
"Created: / 15-03-2010 / 22:06:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1314 |
! ! |
|
1315 |
||
1316 |
!TestRunnerEmbedded class methodsFor:'documentation'! |
|
1317 |
||
10432 | 1318 |
version |
13847 | 1319 |
^ '$Header: /cvs/stx/stx/libtool/Tools__TestRunnerEmbedded.st,v 1.37 2014-02-05 18:59:24 cg Exp $' |
10432 | 1320 |
! |
1321 |
||
9954 | 1322 |
version_CVS |
13847 | 1323 |
^ '$Header: /cvs/stx/stx/libtool/Tools__TestRunnerEmbedded.st,v 1.37 2014-02-05 18:59:24 cg Exp $' |
9954 | 1324 |
! |
1325 |
||
1326 |
version_SVN |
|
13847 | 1327 |
^ '$Id: Tools__TestRunnerEmbedded.st,v 1.37 2014-02-05 18:59:24 cg Exp $' |
9954 | 1328 |
! ! |
12604
8d8912ec9551
class: Tools::TestRunnerEmbedded
Claus Gittinger <cg@exept.de>
parents:
12055
diff
changeset
|
1329 |