author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 25 Jun 2013 20:26:00 +0200 | |
changeset 165 | 43b09a7665bf |
parent 157 | 4dfb5dd30325 |
child 211 | e1d3b41e5c23 |
permissions | -rw-r--r-- |
70 | 1 |
"{ Package: 'stx:goodies/builder/reports' }" |
2 |
||
3 |
LibraryDefinition subclass:#stx_goodies_builder_reports |
|
4 |
instanceVariableNames:'' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
7 |
category:'* Projects & Packages *' |
|
8 |
! |
|
9 |
||
10 |
||
11 |
!stx_goodies_builder_reports class methodsFor:'description'! |
|
12 |
||
13 |
excludedFromPreRequisites |
|
14 |
"list all packages which should be ignored in the automatic |
|
15 |
preRequisites scan. See #preRequisites for more." |
|
16 |
||
17 |
^ #( |
|
18 |
#'stx:goodies/monticello' "MCPatch - referenced by HDChangeReport>>changesFor: " |
|
19 |
) |
|
20 |
||
21 |
"Modified: / 08-03-2011 / 22:08:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
22 |
! |
|
23 |
||
140 | 24 |
mandatoryPreRequisites |
25 |
"list all required mandatory packages. |
|
26 |
Packages are mandatory, if they contain superclasses of the package's classes |
|
27 |
or classes which are extended by this package. |
|
70 | 28 |
This list can be maintained manually or (better) generated and |
140 | 29 |
updated by scanning the superclass hierarchies |
165
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
30 |
(the browser has a menu function for that)" |
140 | 31 |
|
32 |
^ #( |
|
165
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
33 |
#'stx:goodies/sunit' "TestAsserter - extended " |
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
34 |
#'stx:libbasic' "LibraryDefinition - superclass of stx_goodies_builder_reports " |
140 | 35 |
) |
36 |
! |
|
37 |
||
38 |
referencedPreRequisites |
|
39 |
"list all packages containing classes referenced by the packages's members. |
|
40 |
This list can be maintained manually or (better) generated and |
|
41 |
updated by looking for global variable accesses |
|
42 |
(the browser has a menu function for that) |
|
43 |
However, often too much is found, and you may want to explicitely |
|
44 |
exclude individual packages in the #excludedFromPreRequisites method." |
|
70 | 45 |
|
46 |
^ #( |
|
47 |
#'stx:goodies/refactoryBrowser/browser' "PackageEnvironment - referenced by Builder::LintReport>>setupForPackages: " |
|
129 | 48 |
#'stx:goodies/refactoryBrowser/helpers' "BrowserEnvironment - referenced by Builder::LintReport>>setupForClasses: " |
165
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
49 |
#'stx:goodies/refactoryBrowser/lint' "RBBasicLintRule - referenced by Builder::LintReport>>setUp " |
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
50 |
#'stx:libcomp' "InstrumentationContext - referenced by Builder::TestReport>>runReport " |
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
51 |
) |
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
52 |
! |
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
53 |
|
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
54 |
subProjects |
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
55 |
"list packages which are known as subprojects. |
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
56 |
The generated makefile will enter those and make there as well. |
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
57 |
However: they are not forced to be loaded when a package is loaded; |
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
58 |
for those, redefine requiredPrerequisites" |
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
59 |
|
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
60 |
^ #( |
70 | 61 |
) |
62 |
! ! |
|
63 |
||
64 |
!stx_goodies_builder_reports class methodsFor:'description - contents'! |
|
65 |
||
66 |
classNamesAndAttributes |
|
67 |
"lists the classes which are to be included in the project. |
|
68 |
Each entry in the list may be: a single class-name (symbol), |
|
69 |
or an array-literal consisting of class name and attributes. |
|
70 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
71 |
||
72 |
^ #( |
|
73 |
"<className> or (<className> attributes...) in load order" |
|
74 |
#'Builder::Report' |
|
75 |
#'Builder::ReportFormat' |
|
76 |
#'Builder::ReportRunner' |
|
77 |
#'stx_goodies_builder_reports' |
|
78 |
#'Builder::ChangeReport' |
|
79 |
#'Builder::LintReport' |
|
80 |
#'Builder::LintReportFormat' |
|
81 |
#'Builder::TestReport' |
|
82 |
#'Builder::TestReportFormat' |
|
83 |
#'Builder::CoverageReport' |
|
165
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
84 |
#'Builder::ReportSourceInfo' |
43b09a7665bf
Initial version of code coverage report.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
157
diff
changeset
|
85 |
#'Builder::CoverageReportFormat' |
70 | 86 |
) |
87 |
! |
|
88 |
||
89 |
extensionMethodNames |
|
90 |
"lists the extension methods which are to be included in the project. |
|
91 |
Entries are 2-element array literals, consisting of class-name and selector." |
|
92 |
||
93 |
^ #( |
|
94 |
TestCase nameForHDTestReport |
|
95 |
TestCase selectorForHDTestReport |
|
96 |
'TestCase class' isJUnitTestCaseProxy |
|
97 |
'TestCase class' isTestletTestCaseProxy |
|
129 | 98 |
TestCase timeout |
70 | 99 |
) |
100 |
! ! |
|
101 |
||
102 |
!stx_goodies_builder_reports class methodsFor:'description - project information'! |
|
103 |
||
104 |
applicationIconFileName |
|
105 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file" |
|
106 |
||
107 |
^ nil |
|
108 |
"/ ^ self applicationName |
|
109 |
! |
|
110 |
||
111 |
companyName |
|
112 |
"Return a companyname which will appear in <lib>.rc" |
|
113 |
||
114 |
^ 'SWING Research Group & eXept Software AG' |
|
115 |
||
116 |
"Modified: / 21-07-2011 / 10:05:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
117 |
! |
|
118 |
||
119 |
description |
|
120 |
"Return a description string which will appear in vc.def / bc.def" |
|
121 |
||
122 |
^ 'Report Runner for Jenkins CI Server' |
|
123 |
||
124 |
"Modified: / 21-07-2011 / 10:06:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
125 |
! |
|
126 |
||
127 |
legalCopyright |
|
128 |
"Return a copyright string which will appear in <lib>.rc" |
|
129 |
||
130 |
^ 'Copyright Jan Vrany 2011\nCopyright eXept Software AG 2011' |
|
131 |
||
132 |
"Modified: / 21-07-2011 / 10:05:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
133 |
! |
|
134 |
||
129 | 135 |
productInstallDirBaseName |
136 |
"Returns a default installDir which will appear in <app>.nsi. |
|
137 |
This is usually not the one you want to keep" |
|
138 |
||
139 |
^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last |
|
140 |
! |
|
141 |
||
70 | 142 |
productName |
143 |
"Return a product name which will appear in <lib>.rc" |
|
144 |
||
145 |
^ 'ReportRunner' |
|
146 |
||
147 |
"Modified: / 21-07-2011 / 10:06:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
148 |
! ! |
|
149 |
||
150 |
!stx_goodies_builder_reports class methodsFor:'description - startup'! |
|
151 |
||
152 |
startupClassName |
|
153 |
"the name of the class which starts the show in its <startupSelector> method. |
|
154 |
Usually, the name of a subclass of StandAloneStartup." |
|
155 |
||
156 |
||
157 |
^ 'HDReportRunner' |
|
158 |
||
159 |
"Modified: / 21-07-2011 / 10:06:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
160 |
! |
|
161 |
||
162 |
startupSelector |
|
163 |
"the message that is sent to the startupClass to start the show" |
|
164 |
||
165 |
^ #'start' |
|
166 |
! ! |
|
167 |
||
168 |
!stx_goodies_builder_reports class methodsFor:'description - svn'! |
|
169 |
||
170 |
svnRepositoryUrlString |
|
171 |
"Return a SVN repository URL of myself. |
|
172 |
(Generated since 2011-04-08) |
|
173 |
" |
|
174 |
||
175 |
^ '$URL$' |
|
176 |
! |
|
177 |
||
178 |
svnRevisionNr |
|
179 |
"Return a SVN revision number of myself. |
|
180 |
This number is updated after a commit" |
|
181 |
||
140 | 182 |
^ "$SVN-Revision:"'exported'"$" |
70 | 183 |
! ! |
184 |
||
185 |
!stx_goodies_builder_reports class methodsFor:'documentation'! |
|
186 |
||
187 |
version |
|
188 |
^ '$Header$' |
|
189 |
! |
|
190 |
||
191 |
version_CVS |
|
192 |
^ '$Header$' |
|
193 |
! |
|
194 |
||
195 |
version_SVN |
|
157 | 196 |
^ '$Id$' |
70 | 197 |
! ! |
129 | 198 |