author | Stefan Vogel <sv@exept.de> |
Sat, 09 Mar 2013 00:56:24 +0100 | |
changeset 544 | 9e6bee79a390 |
parent 543 | 0426c166e29d |
child 545 | 17675608b914 |
permissions | -rw-r--r-- |
149 | 1 |
"{ Package: 'stx:goodies/sunit' }" |
2 |
||
3 |
LibraryDefinition subclass:#stx_goodies_sunit |
|
4 |
instanceVariableNames:'' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
173 | 7 |
category:'* Projects & Packages *' |
149 | 8 |
! |
9 |
||
245
49ef4f1295cd
changed: #extensionsVersion_CVS
Claus Gittinger <cg@exept.de>
parents:
235
diff
changeset
|
10 |
!stx_goodies_sunit class methodsFor:'documentation'! |
49ef4f1295cd
changed: #extensionsVersion_CVS
Claus Gittinger <cg@exept.de>
parents:
235
diff
changeset
|
11 |
|
457 | 12 |
documentation |
13 |
" |
|
14 |
Build- and package information for creation of the st/x standard library: stx_goodies_sunit |
|
15 |
This library contains the sunit test framework. |
|
16 |
" |
|
245
49ef4f1295cd
changed: #extensionsVersion_CVS
Claus Gittinger <cg@exept.de>
parents:
235
diff
changeset
|
17 |
! ! |
149 | 18 |
|
156 | 19 |
!stx_goodies_sunit class methodsFor:'description'! |
20 |
||
222 | 21 |
excludedFromPreRequisites |
22 |
"list all packages which should be ignored in the automatic |
|
23 |
preRequisites scan. See #preRequisites for more." |
|
24 |
||
156 | 25 |
^ #( |
222 | 26 |
) |
27 |
! |
|
28 |
||
544
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
29 |
mandatoryPreRequisites |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
30 |
"list all required mandatory packages. |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
31 |
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
|
32 |
or classes which are extended by this package. |
222 | 33 |
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
|
34 |
updated by scanning the superclass hierarchies |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
35 |
(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
|
36 |
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
|
37 |
exclude individual packages in the #excludedFromPreRequisites method." |
222 | 38 |
|
39 |
^ #( |
|
544
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
40 |
#'stx:libbasic' "String - extended " |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
41 |
#'stx:libview2' "ApplicationModel - superclass of TestRunner " |
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 |
|
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
45 |
referencedPreRequisites |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
46 |
"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
|
47 |
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
|
48 |
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
|
49 |
(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
|
50 |
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
|
51 |
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
|
52 |
|
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
53 |
^ #( |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
54 |
#'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
|
55 |
#'stx:libview' "Color - referenced by TestRunner>>displayNormalColorInProgress " |
156 | 56 |
) |
57 |
! ! |
|
58 |
||
149 | 59 |
!stx_goodies_sunit class methodsFor:'description - contents'! |
60 |
||
61 |
classNamesAndAttributes |
|
213
f40a88c5ec53
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
62 |
"lists the classes which are to be included in the project. |
f40a88c5ec53
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
63 |
Each entry in the list may be: a single class-name (symbol), |
f40a88c5ec53
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
64 |
or an array-literal consisting of class name and attributes. |
f40a88c5ec53
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
65 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
f40a88c5ec53
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
66 |
|
149 | 67 |
^ #( |
343 | 68 |
"<className> or (<className> attributes...) in load order" |
69 |
(ExampleTestResource autoload) |
|
70 |
SUnitDelay |
|
71 |
SUnitNameResolver |
|
72 |
TestAsserter |
|
73 |
TestFailure |
|
74 |
TestResult |
|
476 | 75 |
TestResultReporter |
343 | 76 |
TestRunner |
77 |
TestSuite |
|
78 |
(TestSuitesCompoundScriptTest autoload) |
|
79 |
(TestSuitesHierarchyScriptTest autoload) |
|
80 |
(TestSuitesScriptTest autoload) |
|
81 |
TestSuitesScripter |
|
82 |
#'stx_goodies_sunit' |
|
83 |
ResumableTestFailure |
|
84 |
TestCase |
|
544
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
85 |
(TestCaseWithArguments autoload) |
343 | 86 |
TestResource |
87 |
(ExampleSetTest autoload) |
|
88 |
(ResumableTestFailureTestCase autoload) |
|
89 |
(SUnitTest autoload) |
|
90 |
(SimpleTestResource autoload) |
|
91 |
(SimpleTestResourceTestCase autoload) |
|
92 |
(FailingTestResourceTestCase autoload) |
|
93 |
(ManyTestResourceTestCase autoload) |
|
94 |
(SimpleTestResourceA autoload) |
|
95 |
(SimpleTestResourceA1 autoload) |
|
96 |
(SimpleTestResourceA2 autoload) |
|
97 |
(SimpleTestResourceB autoload) |
|
98 |
(SimpleTestResourceB1 autoload) |
|
99 |
(SimpleTestResourceCircular autoload) |
|
100 |
(SimpleTestResourceCircular1 autoload) |
|
101 |
(CircularTestResourceTestCase autoload) |
|
349 | 102 |
TestCaseOutcome |
368 | 103 |
TestResultStX |
408 | 104 |
TestResultForRunWithDebug |
440 | 105 |
(SUnitTests2 autoload) |
518 | 106 |
TestCoverageReporter |
107 |
MetricsReporter |
|
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 |
||
544
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
135 |
applicationIconFileName |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
136 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file" |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
137 |
|
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
138 |
^ nil |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
139 |
"/ ^ self applicationName |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
140 |
! |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
141 |
|
149 | 142 |
companyName |
143 |
"Return a companyname which will appear in <lib>.rc" |
|
144 |
||
145 |
^ 'eXept Software AG' |
|
146 |
! |
|
147 |
||
148 |
description |
|
149 |
"Return a description string which will appear in nt.def / bc.def" |
|
150 |
||
222 | 151 |
^ 'Smalltalk/X Class library' |
149 | 152 |
! |
153 |
||
154 |
legalCopyright |
|
155 |
"Return a copyright string which will appear in <lib>.rc" |
|
156 |
||
222 | 157 |
^ 'Copyright eXept Software AG 1998-2007' |
158 |
||
159 |
"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
|
160 |
! |
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 |
productInstallDirBaseName |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
163 |
"Returns a default installDir which will appear in <app>.nsi. |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
164 |
This is usually not the one you want to keep" |
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 |
^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
167 |
! |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
168 |
|
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
169 |
productName |
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
170 |
"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
|
171 |
|
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
172 |
^ 'Smalltalk/X' |
222 | 173 |
! ! |
177 | 174 |
|
222 | 175 |
!stx_goodies_sunit class methodsFor:'description - svn'! |
176 |
||
177 |
svnRevisionNr |
|
178 |
"Return a SVN revision number of myself. |
|
179 |
This number is updated after a commit" |
|
180 |
||
543 | 181 |
^ "$SVN-Revision:"'Nicht versioniertes Verzeichnis'"$" |
235 | 182 |
! ! |
183 |
||
251 | 184 |
!stx_goodies_sunit class methodsFor:'documentation'! |
235 | 185 |
|
356 | 186 |
version |
544
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
187 |
^ '$Header: /cvs/stx/stx/goodies/sunit/stx_goodies_sunit.st,v 1.37 2013-03-08 23:56:24 stefan Exp $' |
356 | 188 |
! |
189 |
||
235 | 190 |
version_CVS |
544
9e6bee79a390
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
543
diff
changeset
|
191 |
^ '$Header: /cvs/stx/stx/goodies/sunit/stx_goodies_sunit.st,v 1.37 2013-03-08 23:56:24 stefan Exp $' |
251 | 192 |
! |
149 | 193 |
|
222 | 194 |
version_SVN |
195 |
^ '§Id: stx_goodies_sunit.st 214 2011-03-14 12:22:21Z vranyj1 §' |
|
149 | 196 |
! ! |
543 | 197 |