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