author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 29 Jul 2013 20:28:11 +0200 | |
changeset 211 | e1d3b41e5c23 |
parent 165 | 43b09a7665bf |
child 283 | 907471201200 |
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' |
211 | 86 |
#'Builder::ReportClassSourceInfo' |
87 |
#'Builder::ReportExtensionsSourceInfo' |
|
70 | 88 |
) |
89 |
! |
|
90 |
||
91 |
extensionMethodNames |
|
92 |
"lists the extension methods which are to be included in the project. |
|
93 |
Entries are 2-element array literals, consisting of class-name and selector." |
|
94 |
||
95 |
^ #( |
|
96 |
TestCase nameForHDTestReport |
|
97 |
TestCase selectorForHDTestReport |
|
98 |
'TestCase class' isJUnitTestCaseProxy |
|
99 |
'TestCase class' isTestletTestCaseProxy |
|
129 | 100 |
TestCase timeout |
70 | 101 |
) |
102 |
! ! |
|
103 |
||
104 |
!stx_goodies_builder_reports class methodsFor:'description - project information'! |
|
105 |
||
106 |
applicationIconFileName |
|
107 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file" |
|
108 |
||
109 |
^ nil |
|
110 |
"/ ^ self applicationName |
|
111 |
! |
|
112 |
||
113 |
companyName |
|
114 |
"Return a companyname which will appear in <lib>.rc" |
|
115 |
||
116 |
^ 'SWING Research Group & eXept Software AG' |
|
117 |
||
118 |
"Modified: / 21-07-2011 / 10:05:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
119 |
! |
|
120 |
||
121 |
description |
|
122 |
"Return a description string which will appear in vc.def / bc.def" |
|
123 |
||
124 |
^ 'Report Runner for Jenkins CI Server' |
|
125 |
||
126 |
"Modified: / 21-07-2011 / 10:06:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
127 |
! |
|
128 |
||
129 |
legalCopyright |
|
130 |
"Return a copyright string which will appear in <lib>.rc" |
|
131 |
||
132 |
^ 'Copyright Jan Vrany 2011\nCopyright eXept Software AG 2011' |
|
133 |
||
134 |
"Modified: / 21-07-2011 / 10:05:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
135 |
! |
|
136 |
||
129 | 137 |
productInstallDirBaseName |
138 |
"Returns a default installDir which will appear in <app>.nsi. |
|
139 |
This is usually not the one you want to keep" |
|
140 |
||
141 |
^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last |
|
142 |
! |
|
143 |
||
70 | 144 |
productName |
145 |
"Return a product name which will appear in <lib>.rc" |
|
146 |
||
147 |
^ 'ReportRunner' |
|
148 |
||
149 |
"Modified: / 21-07-2011 / 10:06:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
150 |
! ! |
|
151 |
||
152 |
!stx_goodies_builder_reports class methodsFor:'description - startup'! |
|
153 |
||
154 |
startupClassName |
|
155 |
"the name of the class which starts the show in its <startupSelector> method. |
|
156 |
Usually, the name of a subclass of StandAloneStartup." |
|
157 |
||
158 |
||
159 |
^ 'HDReportRunner' |
|
160 |
||
161 |
"Modified: / 21-07-2011 / 10:06:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
162 |
! |
|
163 |
||
164 |
startupSelector |
|
165 |
"the message that is sent to the startupClass to start the show" |
|
166 |
||
167 |
^ #'start' |
|
168 |
! ! |
|
169 |
||
170 |
!stx_goodies_builder_reports class methodsFor:'description - svn'! |
|
171 |
||
172 |
svnRepositoryUrlString |
|
173 |
"Return a SVN repository URL of myself. |
|
174 |
(Generated since 2011-04-08) |
|
175 |
" |
|
176 |
||
177 |
^ '$URL$' |
|
178 |
! |
|
179 |
||
180 |
svnRevisionNr |
|
181 |
"Return a SVN revision number of myself. |
|
182 |
This number is updated after a commit" |
|
183 |
||
140 | 184 |
^ "$SVN-Revision:"'exported'"$" |
70 | 185 |
! ! |
186 |
||
187 |
!stx_goodies_builder_reports class methodsFor:'documentation'! |
|
188 |
||
189 |
version |
|
190 |
^ '$Header$' |
|
191 |
! |
|
192 |
||
193 |
version_CVS |
|
194 |
^ '$Header$' |
|
195 |
! |
|
196 |
||
197 |
version_SVN |
|
157 | 198 |
^ '$Id$' |
70 | 199 |
! ! |
129 | 200 |