quickSelfTest/stx_goodies_builder_quickSelfTest.st
author Claus Gittinger <cg@exept.de>
Thu, 28 Mar 2019 13:54:38 +0100
changeset 542 aa25a71be62a
parent 527 4e069da42e11
permissions -rw-r--r--
#DOCUMENTATION by cg
class: stx_goodies_builder_quickSelfTest
class definition

class: stx_goodies_builder_quickSelfTest class
added:18 methods
sr@463
     1
"{ Encoding: utf8 }"
sr@463
     2
sr@371
     3
"{ Package: 'stx:goodies/builder/quickSelfTest' }"
sr@371
     4
sr@371
     5
"{ NameSpace: Smalltalk }"
sr@371
     6
sr@371
     7
ApplicationDefinition subclass:#stx_goodies_builder_quickSelfTest
sr@371
     8
	instanceVariableNames:''
sr@371
     9
	classVariableNames:''
sr@371
    10
	poolDictionaries:''
sr@371
    11
	category:'* Projects & Packages *'
sr@371
    12
!
sr@371
    13
sr@371
    14
sr@371
    15
!stx_goodies_builder_quickSelfTest class methodsFor:'description'!
sr@371
    16
sr@371
    17
applicationIconFileName
sr@371
    18
    ^ nil
sr@371
    19
!
sr@371
    20
sr@371
    21
excludedFromPreRequisites
sr@371
    22
    "obsolete; temporarily, this is still called for, but will eventually vanish.
sr@371
    23
    
sr@371
    24
     List packages which are to be explicitely excluded from the automatic constructed
sr@371
    25
     prerequisites lists (both). 
sr@371
    26
     If empty, everything that is found along the inheritance of any of
sr@371
    27
     my classes is considered to be a prerequisite package."
sr@371
    28
sr@371
    29
    ^ #(
sr@371
    30
    )
sr@371
    31
!
sr@371
    32
sr@500
    33
includedInSubProjects
sr@500
    34
     ^ #(
sr@500
    35
        (#'exept:ole'           win32)
sr@500
    36
        (#'exept:ole/QCOTA'     win32)
sr@500
    37
    )
sr@500
    38
!
sr@500
    39
sr@371
    40
isGUIApplication
sr@371
    41
    "return true, if this is a GUI application.
sr@371
    42
     (these need more libraries and use a different startup procedure)"
sr@371
    43
sr@371
    44
    ^ false
sr@371
    45
!
sr@371
    46
sr@371
    47
mandatoryPreRequisites
sr@371
    48
    "list packages which are mandatory as a prerequisite.
sr@371
    49
     This are packages containing superclasses of my classes and classes which
sr@371
    50
     are extended by myself.
sr@371
    51
     They are mandatory, because we need these packages as a prerequisite for loading and compiling.
sr@371
    52
     This method is generated automatically,
sr@371
    53
     by searching along the inheritance chain of all of my classes.
sr@371
    54
     Please take a look at the #referencedPreRequisites method as well."
sr@371
    55
sr@371
    56
    ^ #(
sr@371
    57
        #'stx:libbasic'    "ApplicationDefinition - superclass of stx_goodies_builder_quickSelfTest"
sr@371
    58
    )
sr@371
    59
!
sr@371
    60
sr@371
    61
referencedPreRequisites
sr@371
    62
    "list packages which are a prerequisite, because they contain
sr@371
    63
     classes which are referenced by my classes.
sr@371
    64
     These packages are NOT needed as a prerequisite for compiling or loading,
sr@371
    65
     however, a class from it may be referenced during execution and having it
sr@371
    66
     unloaded then may lead to a runtime doesNotUnderstand error, unless the caller
sr@371
    67
     includes explicit checks for the package being present.
sr@371
    68
     This method is generated automatically,
sr@371
    69
     by searching all classes (and their packages) which are referenced by my classes.
sr@371
    70
     Please also take a look at the #mandatoryPreRequisites method"
sr@371
    71
sr@371
    72
    ^ #(
sr@440
    73
        #'stx:goodies/regression'    "RegressionTests::IntegerTest - referenced by RunUnitTestsStart class>>main:"
sr@440
    74
        #'stx:goodies/sunit'    "TestResultReporter - referenced by RunUnitTests class>>runWithCompiledUnitTestClasses:arguments:debug:"
sr@512
    75
        #'stx:goodies/regex'    "RegressionTest::RxTests"
sr@440
    76
        #'stx:libcomp'    "ParserFlags - referenced by RunUnitTests class>>runWithCompiledUnitTestClasses:arguments:debug:"
sr@485
    77
        #'exept:libcrypt'                       "referred by RegressionTests::CryptTests"
sr@527
    78
        #'stx:goodies/webServer'       "referred by RegressionTests::HTMLParserTests"  
sr@485
    79
        #'stx:goodies/webServer/htmlTree'       "referred by RegressionTests::HTMLParserTests"  
sr@527
    80
        #'stx:goodies/communication'    "RegressionTests::IntegerTest - referenced by RunUnitTestsStart class>>main:"
sr@371
    81
    )
sr@527
    82
sr@527
    83
    "Modified: / 29-05-2018 / 16:08:21 / sr"
sr@371
    84
!
sr@371
    85
sr@371
    86
subProjects
sr@371
    87
    "list packages which are known as subprojects.
sr@371
    88
     This method is generated automatically; however, when generating automatically,
sr@371
    89
     packages are only added - never removed, unless listed in #excludedFromSubProjects."
sr@371
    90
sr@371
    91
    ^ #(
sr@371
    92
)
sr@371
    93
! !
sr@371
    94
sr@371
    95
!stx_goodies_builder_quickSelfTest class methodsFor:'description - contents'!
sr@371
    96
sr@371
    97
classNamesAndAttributes
sr@371
    98
    "lists the classes which are to be included in the project.
sr@371
    99
     Each entry in the list may be: a single class-name (symbol),
sr@371
   100
     or an array-literal consisting of class name and attributes.
sr@371
   101
     Attributes are: #autoload or #<os> where os is one of win32, unix,..."
sr@371
   102
sr@371
   103
    ^ #(
sr@371
   104
        "<className> or (<className> attributes...) in load order"
sr@371
   105
        RunUnitTests
sr@371
   106
        RunUnitTestsStart
sr@371
   107
        #'stx_goodies_builder_quickSelfTest'
sr@371
   108
    )
sr@371
   109
!
sr@371
   110
sr@371
   111
extensionMethodNames
sr@371
   112
    "lists the extension methods which are to be included in the project.
sr@371
   113
     Entries are 2-element array literals, consisting of class-name and selector.
sr@371
   114
     A correponding method with real names must be present in my concrete subclasses
sr@371
   115
     if it has extensions."
sr@371
   116
sr@371
   117
    ^ #(
sr@371
   118
    )
sr@371
   119
! !
sr@371
   120
sr@371
   121
!stx_goodies_builder_quickSelfTest class methodsFor:'description - project information'!
sr@371
   122
sr@371
   123
companyName
sr@371
   124
    "Returns a company string which will appear in <lib>.rc.
sr@371
   125
     Under win32, this is placed into the dll's file-info.
sr@371
   126
     Other systems may put it elsewhere, or ignore it."
sr@371
   127
sr@371
   128
    ^ 'Claus Gittinger & eXept Software AG'
sr@371
   129
!
sr@371
   130
sr@371
   131
description
sr@371
   132
    "Returns a description string which will appear in nt.def / bc.def"
sr@371
   133
sr@371
   134
    ^ 'Smalltalk/X Application'
sr@371
   135
!
sr@371
   136
sr@371
   137
legalCopyright
sr@371
   138
    "Returns a copyright string which will appear in <lib>.rc.
sr@371
   139
     Under win32, this is placed into the dll's file-info.
sr@371
   140
     Other systems may put it elsewhere, or ignore it."
sr@371
   141
sr@371
   142
    ^ 'Copyright Claus Gittinger 2017\nCopyright eXept Software AG 2017'
sr@371
   143
!
sr@371
   144
sr@371
   145
productInstallDirBaseName
sr@371
   146
    "Returns a default installDir which will appear in <app>.nsi.
sr@371
   147
     This is usually not the one you want to keep"
sr@371
   148
sr@371
   149
    ^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last
sr@371
   150
!
sr@371
   151
sr@371
   152
productName
sr@371
   153
    " we get this error, if the concrete class has not yet redefined"
sr@371
   154
cg@542
   155
    ^ 'QuickSelfTestSmalltalk/X'
cg@542
   156
cg@542
   157
    "Modified: / 28-03-2019 / 13:54:03 / Claus Gittinger"
sr@371
   158
! !
sr@371
   159
sr@371
   160
!stx_goodies_builder_quickSelfTest class methodsFor:'description - startup'!
sr@371
   161
sr@371
   162
startupClassName
sr@371
   163
    "the name of the class which starts the show in its <startupSelector> method.
sr@371
   164
     Usually, the name of a subclass of StandAloneStartup."
sr@371
   165
sr@371
   166
    ^ 'RunUnitTestsStart'
sr@371
   167
!
sr@371
   168
sr@371
   169
startupSelector
sr@371
   170
    "the message that is sent to the startupClass to start the show"
sr@371
   171
sr@371
   172
    ^ #'start'        
sr@371
   173
! !
sr@371
   174
sr@371
   175
!stx_goodies_builder_quickSelfTest class methodsFor:'documentation'!
sr@371
   176
sr@371
   177
version
sr@371
   178
    ^ '$Header$'
sr@371
   179
!
sr@371
   180
sr@371
   181
version_CVS
sr@371
   182
    ^ '$Header$'
sr@371
   183
! !
sr@371
   184