author | Claus Gittinger <cg@exept.de> |
Tue, 16 Jan 2018 21:05:44 +0100 | |
changeset 697 | a6b1cd76015c |
parent 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). |
|
695 | 23 |
|
24 |
[author:] |
|
25 |
many |
|
26 |
||
27 |
[primary maintainer:] |
|
28 |
cg, sv, jv |
|
457 | 29 |
" |
245
49ef4f1295cd
changed: #extensionsVersion_CVS
Claus Gittinger <cg@exept.de>
parents:
235
diff
changeset
|
30 |
! ! |
149 | 31 |
|
156 | 32 |
!stx_goodies_sunit class methodsFor:'description'! |
33 |
||
544
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
34 |
mandatoryPreRequisites |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
35 |
"list all required mandatory packages. |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
36 |
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
|
37 |
or classes which are extended by this package. |
222 | 38 |
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
|
39 |
updated by scanning the superclass hierarchies |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
40 |
(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
|
41 |
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
|
42 |
exclude individual packages in the #excludedFromPreRequisites method." |
222 | 43 |
|
44 |
^ #( |
|
544
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
45 |
#'stx:libbasic' "String - extended " |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
46 |
#'stx:libview2' "ApplicationModel - superclass of TestRunner " |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
47 |
) |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
48 |
! |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
49 |
|
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
50 |
referencedPreRequisites |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
51 |
"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
|
52 |
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
|
53 |
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
|
54 |
(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
|
55 |
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
|
56 |
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
|
57 |
|
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
58 |
^ #( |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
59 |
#'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
|
60 |
#'stx:libview' "Color - referenced by TestRunner>>displayNormalColorInProgress " |
156 | 61 |
) |
62 |
! ! |
|
63 |
||
149 | 64 |
!stx_goodies_sunit class methodsFor:'description - contents'! |
65 |
||
66 |
classNamesAndAttributes |
|
213
f40a88c5ec53
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
67 |
"lists the classes which are to be included in the project. |
f40a88c5ec53
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
68 |
Each entry in the list may be: a single class-name (symbol), |
f40a88c5ec53
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
69 |
or an array-literal consisting of class name and attributes. |
f40a88c5ec53
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
70 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
f40a88c5ec53
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
71 |
|
149 | 72 |
^ #( |
343 | 73 |
"<className> or (<className> attributes...) in load order" |
74 |
(ExampleTestResource autoload) |
|
75 |
SUnitDelay |
|
76 |
SUnitNameResolver |
|
77 |
TestAsserter |
|
78 |
TestFailure |
|
79 |
TestResult |
|
476 | 80 |
TestResultReporter |
343 | 81 |
TestRunner |
82 |
TestSuite |
|
83 |
(TestSuitesCompoundScriptTest autoload) |
|
84 |
(TestSuitesHierarchyScriptTest autoload) |
|
85 |
(TestSuitesScriptTest autoload) |
|
86 |
TestSuitesScripter |
|
87 |
#'stx_goodies_sunit' |
|
88 |
ResumableTestFailure |
|
89 |
TestCase |
|
588 | 90 |
TestCaseWithArguments |
343 | 91 |
TestResource |
92 |
(ExampleSetTest autoload) |
|
93 |
(ResumableTestFailureTestCase autoload) |
|
94 |
(SUnitTest autoload) |
|
95 |
(SimpleTestResource autoload) |
|
96 |
(SimpleTestResourceTestCase autoload) |
|
97 |
(FailingTestResourceTestCase autoload) |
|
98 |
(ManyTestResourceTestCase autoload) |
|
99 |
(SimpleTestResourceA autoload) |
|
100 |
(SimpleTestResourceA1 autoload) |
|
101 |
(SimpleTestResourceA2 autoload) |
|
102 |
(SimpleTestResourceB autoload) |
|
103 |
(SimpleTestResourceB1 autoload) |
|
104 |
(SimpleTestResourceCircular autoload) |
|
105 |
(SimpleTestResourceCircular1 autoload) |
|
106 |
(CircularTestResourceTestCase autoload) |
|
349 | 107 |
TestCaseOutcome |
368 | 108 |
TestResultStX |
408 | 109 |
TestResultForRunWithDebug |
440 | 110 |
(SUnitTests2 autoload) |
518 | 111 |
TestCoverageReporter |
112 |
MetricsReporter |
|
561 | 113 |
TestSkipped |
149 | 114 |
) |
115 |
! |
|
116 |
||
117 |
extensionMethodNames |
|
222 | 118 |
"lists the extension methods which are to be included in the project. |
119 |
Entries are 2-element array literals, consisting of class-name and selector." |
|
120 |
||
149 | 121 |
^ #( |
427 | 122 |
Block sunitEnsure: |
123 |
Block sunitOn:do: |
|
124 |
GenericException sunitAnnounce:toResult: |
|
125 |
GenericException sunitExitWith: |
|
126 |
Object sunitAddDependent: |
|
127 |
Object sunitChanged: |
|
128 |
Object sunitRemoveDependent: |
|
129 |
String sunitAsSymbol |
|
130 |
String sunitMatch: |
|
131 |
String sunitSubStrings |
|
132 |
Symbol sunitAsClass |
|
133 |
'GenericException class' sunitSignalWith: |
|
544
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
134 |
Behavior sunitSelectors |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
135 |
Class sunitName |
149 | 136 |
) |
137 |
! ! |
|
138 |
||
139 |
!stx_goodies_sunit class methodsFor:'description - project information'! |
|
140 |
||
141 |
companyName |
|
142 |
"Return a companyname which will appear in <lib>.rc" |
|
143 |
||
144 |
^ 'eXept Software AG' |
|
145 |
! |
|
146 |
||
147 |
description |
|
148 |
"Return a description string which will appear in nt.def / bc.def" |
|
149 |
||
585 | 150 |
^ 'Smalltalk/X Unit Testing' |
149 | 151 |
! |
152 |
||
153 |
legalCopyright |
|
154 |
"Return a copyright string which will appear in <lib>.rc" |
|
155 |
||
672 | 156 |
^ 'Copyright Claus Gittinger\nCopyright eXept Software AG 2007' |
222 | 157 |
|
672 | 158 |
"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
|
159 |
! |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
160 |
|
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
161 |
productName |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
162 |
"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
|
163 |
|
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
164 |
^ 'Smalltalk/X' |
222 | 165 |
! ! |
177 | 166 |
|
222 | 167 |
!stx_goodies_sunit class methodsFor:'description - svn'! |
168 |
||
169 |
svnRevisionNr |
|
170 |
"Return a SVN revision number of myself. |
|
171 |
This number is updated after a commit" |
|
172 |
||
543 | 173 |
^ "$SVN-Revision:"'Nicht versioniertes Verzeichnis'"$" |
235 | 174 |
! ! |
175 |
||
251 | 176 |
!stx_goodies_sunit class methodsFor:'documentation'! |
235 | 177 |
|
356 | 178 |
version |
620 | 179 |
^ '$Header$' |
356 | 180 |
! |
181 |
||
235 | 182 |
version_CVS |
620 | 183 |
^ '$Header$' |
251 | 184 |
! |
149 | 185 |
|
222 | 186 |
version_SVN |
620 | 187 |
^ '$Id$' |
149 | 188 |
! ! |
543 | 189 |