stx_goodies_sunit.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 28 May 2015 21:57:29 +0100
branchworking_v5_0
changeset 618 ba4de33722d8
parent 614 3003097506c9
permissions -rw-r--r--
Moved MethodDefinitionChange>>changeMethod back to stx:libbasic3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:goodies/sunit' }"
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     2
618
ba4de33722d8 Moved MethodDefinitionChange>>changeMethod back to stx:libbasic3
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 614
diff changeset
     3
"{ NameSpace: Smalltalk }"
ba4de33722d8 Moved MethodDefinitionChange>>changeMethod back to stx:libbasic3
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 614
diff changeset
     4
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     5
LibraryDefinition subclass:#stx_goodies_sunit
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     6
	instanceVariableNames:''
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     7
	classVariableNames:''
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     8
	poolDictionaries:''
173
6fe46bec2948 Category change
Stefan Vogel <sv@exept.de>
parents: 172
diff changeset
     9
	category:'* Projects & Packages *'
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    10
!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    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
ae823abf01c0 comment
Claus Gittinger <cg@exept.de>
parents: 440
diff changeset
    14
documentation
ae823abf01c0 comment
Claus Gittinger <cg@exept.de>
parents: 440
diff changeset
    15
"
ae823abf01c0 comment
Claus Gittinger <cg@exept.de>
parents: 440
diff changeset
    16
    Build- and package information for creation of the st/x standard library: stx_goodies_sunit
ae823abf01c0 comment
Claus Gittinger <cg@exept.de>
parents: 440
diff changeset
    17
    This library contains the sunit test framework.
ae823abf01c0 comment
Claus Gittinger <cg@exept.de>
parents: 440
diff changeset
    18
"
245
49ef4f1295cd changed: #extensionsVersion_CVS
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    19
! !
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    20
611
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    21
!stx_goodies_sunit class methodsFor:'accessing - hg - settings'!
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    22
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    23
hgEnsureCopyrightMethod
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    24
    "If true, then #copyright method is automatically compiled in each class
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    25
     (but iff project definition defines it)
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    26
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    27
     Default is true (compile such method) but if the repository is mirror of CVS and
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    28
     you want to merge back to CVS at some point, you may want to not compile them
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    29
     to keep changes against CVS minimal"
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    30
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    31
    ^false
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    32
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    33
    "Created: / 09-07-2014 / 21:30:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    34
!
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    35
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    36
hgEnsureVersion_HGMethod
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    37
    "If true, then #version_HG method is automatically compiled in each class.
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    38
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    39
     Default is true (compile such method) but if the repository is mirror of CVS and
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    40
     you want to merge back to CVS at some point, you may want to not compile them
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    41
     to keep changes against CVS minimal. 
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    42
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    43
     If false, version_HG is compiled only in classes that has been modified
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    44
     and commited.
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    45
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    46
     Note that Mercurial can live without them
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    47
     just fine"
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    48
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    49
    ^false
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    50
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    51
    "Created: / 09-07-2014 / 21:30:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    52
!
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    53
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    54
hgRemoveContainesForDeletedClasses
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    55
    "If true, then containers for removed classes are __AUTOMATICALLY__ removed from the
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    56
     repositoru. If false, obsolete containes are kept.
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    57
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    58
     Default is true (remove obsolete containers) but if the repository is mirror of CVS and
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    59
     you want to merge back to CVS at some point, you may want to return false to avoid deletions
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    60
     of obsolete files. Usefull when branching off an old CVS repo with loads of mess."
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    61
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    62
    ^false
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    63
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    64
    "Created: / 09-07-2014 / 21:30:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    65
! !
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    66
156
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    67
!stx_goodies_sunit class methodsFor:'description'!
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    68
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    69
excludedFromPreRequisites
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    70
    "list all packages which should be ignored in the automatic
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    71
     preRequisites scan. See #preRequisites for more."
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    72
156
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    73
    ^ #(
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    74
    )
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    75
!
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    76
544
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
    77
mandatoryPreRequisites
614
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
    78
    "list packages which are mandatory as a prerequisite.
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
    79
     This are packages containing superclasses of my classes and classes which
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
    80
     are extended by myself.
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
    81
     They are mandatory, because we need these packages as a prerequisite for loading and compiling.
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
    82
     This method is generated automatically,
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
    83
     by searching along the inheritance chain of all of my classes."
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    84
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    85
    ^ #(
614
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
    86
        #'stx:libbasic'    "ArrayedCollection - extended"
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
    87
        #'stx:libview2'    "ApplicationModel - superclass of TestRunner"
544
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
    88
    )
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
    89
!
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
    90
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
    91
referencedPreRequisites
614
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
    92
    "list packages which are a prerequisite, because they contain
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
    93
     classes which are referenced by my classes.
618
ba4de33722d8 Moved MethodDefinitionChange>>changeMethod back to stx:libbasic3
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 614
diff changeset
    94
     We do not need these packages as a prerequisite for compiling or loading,
ba4de33722d8 Moved MethodDefinitionChange>>changeMethod back to stx:libbasic3
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 614
diff changeset
    95
     however, a class from it may be referenced during execution and having it
ba4de33722d8 Moved MethodDefinitionChange>>changeMethod back to stx:libbasic3
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 614
diff changeset
    96
     unloaded then may lead to a runtime doesNotUnderstand error, unless the caller
ba4de33722d8 Moved MethodDefinitionChange>>changeMethod back to stx:libbasic3
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 614
diff changeset
    97
     includes explicit checks for the package being present.
614
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
    98
     This method is generated automatically,
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
    99
     by searching all classes (and their packages) which are referenced by my classes."
544
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   100
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   101
    ^ #(
614
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   102
        #'stx:libbasic2'    "LineNumberReadStream - referenced by TestResultStX>>printLineForContextForJavaCompatibleStackTrace:on:"
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   103
        #'stx:libview'    "Color - referenced by TestRunner class>>colorForFailedTests"
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   104
    )
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   105
!
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   106
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   107
subProjects
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   108
    "list packages which are known as subprojects. 
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   109
     The generated makefile will enter those and make there as well.
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   110
     However: they are not forced to be loaded when a package is loaded; 
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   111
     for those, redefine requiredPrerequisites."
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   112
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   113
    ^ #(
156
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   114
    )
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   115
! !
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   116
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   117
!stx_goodies_sunit class methodsFor:'description - contents'!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   118
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   119
classNamesAndAttributes
213
f40a88c5ec53 changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents: 193
diff changeset
   120
    "lists the classes which are to be included in the project.
f40a88c5ec53 changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents: 193
diff changeset
   121
     Each entry in the list may be: a single class-name (symbol),
f40a88c5ec53 changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents: 193
diff changeset
   122
     or an array-literal consisting of class name and attributes.
f40a88c5ec53 changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents: 193
diff changeset
   123
     Attributes are: #autoload or #<os> where os is one of win32, unix,..."
f40a88c5ec53 changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents: 193
diff changeset
   124
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   125
    ^ #(
343
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   126
        "<className> or (<className> attributes...) in load order"
614
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   127
        MetricsReporter
343
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   128
        SUnitDelay
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   129
        SUnitNameResolver
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   130
        TestAsserter
614
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   131
        TestCaseOutcome
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   132
        TestCaseOutcomeWeakIdentityDictionary
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   133
        TestCoverageReporter
343
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   134
        TestFailure
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   135
        TestResult
476
700cd1a9964c automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 457
diff changeset
   136
        TestResultReporter
343
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   137
        TestRunner
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   138
        TestSuite
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   139
        TestSuitesScripter
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   140
        #'stx_goodies_sunit'
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   141
        ResumableTestFailure
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   142
        TestCase
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   143
        TestResource
614
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   144
        TestResultStX
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   145
        TestSkipped
618
ba4de33722d8 Moved MethodDefinitionChange>>changeMethod back to stx:libbasic3
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 614
diff changeset
   146
        TestResultForRunWithDebug
ba4de33722d8 Moved MethodDefinitionChange>>changeMethod back to stx:libbasic3
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 614
diff changeset
   147
        (CircularTestResourceTestCase autoload)
343
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   148
        (ExampleSetTest autoload)
614
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   149
        (ExampleTestResource autoload)
618
ba4de33722d8 Moved MethodDefinitionChange>>changeMethod back to stx:libbasic3
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 614
diff changeset
   150
        (FailingTestResourceTestCase autoload)
ba4de33722d8 Moved MethodDefinitionChange>>changeMethod back to stx:libbasic3
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 614
diff changeset
   151
        (ManyTestResourceTestCase autoload)
343
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   152
        (ResumableTestFailureTestCase autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   153
        (SUnitTest autoload)
614
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   154
        (SUnitTests2 autoload)
343
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   155
        (SimpleTestResource autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   156
        (SimpleTestResourceA autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   157
        (SimpleTestResourceA1 autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   158
        (SimpleTestResourceA2 autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   159
        (SimpleTestResourceB autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   160
        (SimpleTestResourceB1 autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   161
        (SimpleTestResourceCircular autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   162
        (SimpleTestResourceCircular1 autoload)
618
ba4de33722d8 Moved MethodDefinitionChange>>changeMethod back to stx:libbasic3
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 614
diff changeset
   163
        (SimpleTestResourceTestCase autoload)
ba4de33722d8 Moved MethodDefinitionChange>>changeMethod back to stx:libbasic3
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 614
diff changeset
   164
        (TestCaseWithArguments autoload)
ba4de33722d8 Moved MethodDefinitionChange>>changeMethod back to stx:libbasic3
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 614
diff changeset
   165
        (TestSuitesCompoundScriptTest autoload)
614
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   166
        (TestSuitesHierarchyScriptTest autoload)
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   167
        (TestSuitesScriptTest autoload)
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   168
    )
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   169
!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   170
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   171
extensionMethodNames
614
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   172
    "list class/selector pairs of extensions.
3003097506c9 Refactored remembering of TestCaseOutcomes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 611
diff changeset
   173
     A correponding method with real names must be present in my concrete subclasses"
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   174
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   175
    ^ #(
427
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   176
        Block sunitEnsure:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   177
        Block sunitOn:do:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   178
        GenericException sunitAnnounce:toResult:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   179
        GenericException sunitExitWith:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   180
        Object sunitAddDependent:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   181
        Object sunitChanged:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   182
        Object sunitRemoveDependent:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   183
        String sunitAsSymbol
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   184
        String sunitMatch:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   185
        String sunitSubStrings
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   186
        Symbol sunitAsClass
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   187
        'GenericException class' sunitSignalWith:
544
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   188
        Behavior sunitSelectors
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   189
        Class sunitName
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   190
    )
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   191
! !
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   192
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   193
!stx_goodies_sunit class methodsFor:'description - project information'!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   194
544
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   195
applicationIconFileName
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   196
    "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
   197
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   198
    ^ nil
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   199
    "/ ^ self applicationName
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   200
!
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   201
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   202
companyName
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   203
    "Return a companyname which will appear in <lib>.rc"
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   204
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   205
    ^ 'eXept Software AG'
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   206
!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   207
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   208
description
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   209
    "Return a description string which will appear in nt.def / bc.def"
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   210
585
e77be448192c changed: #description
Claus Gittinger <cg@exept.de>
parents: 561
diff changeset
   211
    ^ 'Smalltalk/X Unit Testing'
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   212
!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   213
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   214
legalCopyright
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   215
    "Return a copyright string which will appear in <lib>.rc"
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   216
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   217
    ^ 'Copyright eXept Software AG 1998-2007'
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   218
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   219
    "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
   220
!
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   221
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   222
productName
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   223
    "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
   224
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   225
    ^ 'Smalltalk/X'
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   226
! !
177
f46c94410480 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   227
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   228
!stx_goodies_sunit class methodsFor:'description - svn'!
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   229
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   230
svnRevisionNr
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   231
    "Return a SVN revision number of myself.
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   232
     This number is updated after a commit"
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   233
543
0426c166e29d automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 518
diff changeset
   234
    ^ "$SVN-Revision:"'Nicht versioniertes Verzeichnis'"$"
235
d06056977c51 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 222
diff changeset
   235
! !
d06056977c51 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 222
diff changeset
   236
251
9c8dafcfbf66 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   237
!stx_goodies_sunit class methodsFor:'documentation'!
235
d06056977c51 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 222
diff changeset
   238
356
17065e3b6395 automatic checkIn
vrany
parents: 349
diff changeset
   239
version
588
0d69293eb505 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   240
    ^ '$Header: /cvs/stx/stx/goodies/sunit/stx_goodies_sunit.st,v 1.41 2014-03-23 21:08:48 cg Exp $'
356
17065e3b6395 automatic checkIn
vrany
parents: 349
diff changeset
   241
!
17065e3b6395 automatic checkIn
vrany
parents: 349
diff changeset
   242
235
d06056977c51 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 222
diff changeset
   243
version_CVS
588
0d69293eb505 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   244
    ^ '$Header: /cvs/stx/stx/goodies/sunit/stx_goodies_sunit.st,v 1.41 2014-03-23 21:08:48 cg Exp $'
251
9c8dafcfbf66 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   245
!
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   246
611
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
   247
version_HG
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
   248
    ^ '$Changeset: <not expanded> $'
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
   249
!
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
   250
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   251
version_SVN
588
0d69293eb505 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   252
    ^ '$Id: stx_goodies_sunit.st,v 1.41 2014-03-23 21:08:48 cg Exp $'
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   253
! !
543
0426c166e29d automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 518
diff changeset
   254