author | Claus Gittinger <cg@exept.de> |
Thu, 13 Jul 2017 15:11:26 +0200 | |
changeset 685 | 00195d0e5ebc |
parent 672 | 894824f3c03f |
child 673 | 7c5c1bc3be7b |
child 695 | e17f622e8a9e |
permissions | -rw-r--r-- |
149 | 1 |
"{ Package: 'stx:goodies/sunit' }" |
2 |
||
595 | 3 |
"{ NameSpace: Smalltalk }" |
4 |
||
149 | 5 |
LibraryDefinition subclass:#stx_goodies_sunit |
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
173 | 9 |
category:'* Projects & Packages *' |
149 | 10 |
! |
11 |
||
245
49ef4f1295cd
changed: #extensionsVersion_CVS
Claus Gittinger <cg@exept.de>
parents:
235
diff
changeset
|
12 |
!stx_goodies_sunit class methodsFor:'documentation'! |
49ef4f1295cd
changed: #extensionsVersion_CVS
Claus Gittinger <cg@exept.de>
parents:
235
diff
changeset
|
13 |
|
457 | 14 |
documentation |
15 |
" |
|
592 | 16 |
Package documentation: |
17 |
||
18 |
This library contains the sunit test framework, |
|
19 |
including an old (now obsolete) version of the test runner. |
|
20 |
There are now both an improved multi-pane testRunner application |
|
21 |
and also a testrunner integrated in the browser (shown whenever a testcase class |
|
22 |
is selected). |
|
457 | 23 |
" |
245
49ef4f1295cd
changed: #extensionsVersion_CVS
Claus Gittinger <cg@exept.de>
parents:
235
diff
changeset
|
24 |
! ! |
149 | 25 |
|
156 | 26 |
!stx_goodies_sunit class methodsFor:'description'! |
27 |
||
544
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
28 |
mandatoryPreRequisites |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
29 |
"list all required mandatory packages. |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
30 |
Packages are mandatory, if they contain superclasses of the package's classes |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
31 |
or classes which are extended by this package. |
222 | 32 |
This list can be maintained manually or (better) generated and |
544
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
33 |
updated by scanning the superclass hierarchies |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
34 |
(the browser has a menu function for that) |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
35 |
However, often too much is found, and you may want to explicitely |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
36 |
exclude individual packages in the #excludedFromPreRequisites method." |
222 | 37 |
|
38 |
^ #( |
|
544
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
39 |
#'stx:libbasic' "String - extended " |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
40 |
#'stx:libview2' "ApplicationModel - superclass of TestRunner " |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
41 |
) |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
42 |
! |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
43 |
|
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
44 |
referencedPreRequisites |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
45 |
"list all packages containing classes referenced by the packages's members. |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
46 |
This list can be maintained manually or (better) generated and |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
47 |
updated by looking for global variable accesses |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
48 |
(the browser has a menu function for that) |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
49 |
However, often too much is found, and you may want to explicitely |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
50 |
exclude individual packages in the #excludedFromPreRequisites method." |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
51 |
|
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
52 |
^ #( |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
53 |
#'stx:libbasic2' "SplittingWriteStream - referenced by TestResultStX>>performCase: " |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
54 |
#'stx:libview' "Color - referenced by TestRunner>>displayNormalColorInProgress " |
156 | 55 |
) |
56 |
! ! |
|
57 |
||
149 | 58 |
!stx_goodies_sunit class methodsFor:'description - contents'! |
59 |
||
60 |
classNamesAndAttributes |
|
213
f40a88c5ec53
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
61 |
"lists the classes which are to be included in the project. |
f40a88c5ec53
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
62 |
Each entry in the list may be: a single class-name (symbol), |
f40a88c5ec53
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
63 |
or an array-literal consisting of class name and attributes. |
f40a88c5ec53
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
64 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
f40a88c5ec53
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
65 |
|
149 | 66 |
^ #( |
343 | 67 |
"<className> or (<className> attributes...) in load order" |
68 |
(ExampleTestResource autoload) |
|
69 |
SUnitDelay |
|
70 |
SUnitNameResolver |
|
71 |
TestAsserter |
|
72 |
TestFailure |
|
73 |
TestResult |
|
476 | 74 |
TestResultReporter |
343 | 75 |
TestRunner |
76 |
TestSuite |
|
77 |
(TestSuitesCompoundScriptTest autoload) |
|
78 |
(TestSuitesHierarchyScriptTest autoload) |
|
79 |
(TestSuitesScriptTest autoload) |
|
80 |
TestSuitesScripter |
|
81 |
#'stx_goodies_sunit' |
|
82 |
ResumableTestFailure |
|
83 |
TestCase |
|
588 | 84 |
TestCaseWithArguments |
343 | 85 |
TestResource |
86 |
(ExampleSetTest autoload) |
|
87 |
(ResumableTestFailureTestCase autoload) |
|
88 |
(SUnitTest autoload) |
|
89 |
(SimpleTestResource autoload) |
|
90 |
(SimpleTestResourceTestCase autoload) |
|
91 |
(FailingTestResourceTestCase autoload) |
|
92 |
(ManyTestResourceTestCase autoload) |
|
93 |
(SimpleTestResourceA autoload) |
|
94 |
(SimpleTestResourceA1 autoload) |
|
95 |
(SimpleTestResourceA2 autoload) |
|
96 |
(SimpleTestResourceB autoload) |
|
97 |
(SimpleTestResourceB1 autoload) |
|
98 |
(SimpleTestResourceCircular autoload) |
|
99 |
(SimpleTestResourceCircular1 autoload) |
|
100 |
(CircularTestResourceTestCase autoload) |
|
349 | 101 |
TestCaseOutcome |
368 | 102 |
TestResultStX |
408 | 103 |
TestResultForRunWithDebug |
440 | 104 |
(SUnitTests2 autoload) |
518 | 105 |
TestCoverageReporter |
106 |
MetricsReporter |
|
561 | 107 |
TestSkipped |
149 | 108 |
) |
109 |
! |
|
110 |
||
111 |
extensionMethodNames |
|
222 | 112 |
"lists the extension methods which are to be included in the project. |
113 |
Entries are 2-element array literals, consisting of class-name and selector." |
|
114 |
||
149 | 115 |
^ #( |
427 | 116 |
Block sunitEnsure: |
117 |
Block sunitOn:do: |
|
118 |
GenericException sunitAnnounce:toResult: |
|
119 |
GenericException sunitExitWith: |
|
120 |
Object sunitAddDependent: |
|
121 |
Object sunitChanged: |
|
122 |
Object sunitRemoveDependent: |
|
123 |
String sunitAsSymbol |
|
124 |
String sunitMatch: |
|
125 |
String sunitSubStrings |
|
126 |
Symbol sunitAsClass |
|
127 |
'GenericException class' sunitSignalWith: |
|
544
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
128 |
Behavior sunitSelectors |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
129 |
Class sunitName |
149 | 130 |
) |
131 |
! ! |
|
132 |
||
133 |
!stx_goodies_sunit class methodsFor:'description - project information'! |
|
134 |
||
135 |
companyName |
|
136 |
"Return a companyname which will appear in <lib>.rc" |
|
137 |
||
138 |
^ 'eXept Software AG' |
|
139 |
! |
|
140 |
||
141 |
description |
|
142 |
"Return a description string which will appear in nt.def / bc.def" |
|
143 |
||
585 | 144 |
^ 'Smalltalk/X Unit Testing' |
149 | 145 |
! |
146 |
||
147 |
legalCopyright |
|
148 |
"Return a copyright string which will appear in <lib>.rc" |
|
149 |
||
672 | 150 |
^ 'Copyright Claus Gittinger\nCopyright eXept Software AG 2007' |
222 | 151 |
|
672 | 152 |
"Modified: / 18-11-2016 / 12:16:48 / cg" |
544
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
153 |
! |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
154 |
|
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
155 |
productName |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
156 |
"Return a product name which will appear in <lib>.rc" |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
157 |
|
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
158 |
^ 'Smalltalk/X' |
222 | 159 |
! ! |
177 | 160 |
|
222 | 161 |
!stx_goodies_sunit class methodsFor:'description - svn'! |
162 |
||
163 |
svnRevisionNr |
|
164 |
"Return a SVN revision number of myself. |
|
165 |
This number is updated after a commit" |
|
166 |
||
543 | 167 |
^ "$SVN-Revision:"'Nicht versioniertes Verzeichnis'"$" |
235 | 168 |
! ! |
169 |
||
251 | 170 |
!stx_goodies_sunit class methodsFor:'documentation'! |
235 | 171 |
|
356 | 172 |
version |
620 | 173 |
^ '$Header$' |
356 | 174 |
! |
175 |
||
235 | 176 |
version_CVS |
620 | 177 |
^ '$Header$' |
251 | 178 |
! |
149 | 179 |
|
222 | 180 |
version_SVN |
620 | 181 |
^ '$Id$' |
149 | 182 |
! ! |
543 | 183 |