stx_goodies_sunit.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 09 Jul 2014 23:00:04 +0100
branchworking_v5_0
changeset 613 5a546630cfcf
parent 611 1eecc860f4a5
child 614 3003097506c9
permissions -rw-r--r--
Reverted TestCase>>debug to original SUnit implementation and made TestFailure proceedable. The code in TestCase>>debug was too elaborate. The purpose was to be able to proceed to see what next assertion is failing. This could be easily achieved by making TestFailure a resumable exception (by means of #mayProceed)
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
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     3
LibraryDefinition subclass:#stx_goodies_sunit
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     4
	instanceVariableNames:''
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     5
	classVariableNames:''
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     6
	poolDictionaries:''
173
6fe46bec2948 Category change
Stefan Vogel <sv@exept.de>
parents: 172
diff changeset
     7
	category:'* Projects & Packages *'
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     8
!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     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
ae823abf01c0 comment
Claus Gittinger <cg@exept.de>
parents: 440
diff changeset
    12
documentation
ae823abf01c0 comment
Claus Gittinger <cg@exept.de>
parents: 440
diff changeset
    13
"
ae823abf01c0 comment
Claus Gittinger <cg@exept.de>
parents: 440
diff changeset
    14
    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
    15
    This library contains the sunit test framework.
ae823abf01c0 comment
Claus Gittinger <cg@exept.de>
parents: 440
diff changeset
    16
"
245
49ef4f1295cd changed: #extensionsVersion_CVS
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    17
! !
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    18
611
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    19
!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
    20
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    21
hgEnsureCopyrightMethod
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    22
    "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
    23
     (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
    24
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    25
     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
    26
     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
    27
     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
    28
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    29
    ^false
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
    "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
    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
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    34
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
    35
    "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
    36
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    37
     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
    38
     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
    39
     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
    40
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    41
     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
    42
     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
    43
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    44
     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
    45
     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
    46
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    47
    ^false
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
    "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
    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
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    52
hgRemoveContainesForDeletedClasses
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    53
    "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
    54
     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
    55
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    56
     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
    57
     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
    58
     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
    59
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
    60
    ^false
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
    "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
    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
156
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    65
!stx_goodies_sunit class methodsFor:'description'!
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    66
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    67
excludedFromPreRequisites
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    68
    "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
    69
     preRequisites scan. See #preRequisites for more."
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    70
156
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    71
    ^ #(
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    72
    )
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    73
!
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    74
544
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
    75
mandatoryPreRequisites
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
    76
    "list all required mandatory packages.
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
    77
     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
    78
     or classes which are extended by this package.
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    79
     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
    80
     updated by scanning the superclass hierarchies
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
    81
     (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
    82
     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
    83
     exclude individual packages in the #excludedFromPreRequisites method."
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
    ^ #(
544
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
    86
        #'stx:libbasic'    "String - extended "
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
    87
        #'stx:libview2'    "ApplicationModel - superclass of TestRunner "
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
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
    92
    "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
    93
     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
    94
     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
    95
     (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
    96
     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
    97
     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
    98
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
    99
    ^ #(
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   100
        #'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
   101
        #'stx:libview'    "Color - referenced by TestRunner>>displayNormalColorInProgress "
156
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   102
    )
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   103
! !
6a4aebabacbd automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   104
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   105
!stx_goodies_sunit class methodsFor:'description - contents'!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   106
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   107
classNamesAndAttributes
213
f40a88c5ec53 changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents: 193
diff changeset
   108
    "lists the classes which are to be included in the project.
f40a88c5ec53 changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents: 193
diff changeset
   109
     Each entry in the list may be: a single class-name (symbol),
f40a88c5ec53 changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents: 193
diff changeset
   110
     or an array-literal consisting of class name and attributes.
f40a88c5ec53 changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents: 193
diff changeset
   111
     Attributes are: #autoload or #<os> where os is one of win32, unix,..."
f40a88c5ec53 changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents: 193
diff changeset
   112
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   113
    ^ #(
343
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   114
        "<className> or (<className> attributes...) in load order"
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   115
        (ExampleTestResource autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   116
        SUnitDelay
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   117
        SUnitNameResolver
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   118
        TestAsserter
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   119
        TestFailure
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   120
        TestResult
476
700cd1a9964c automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 457
diff changeset
   121
        TestResultReporter
343
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   122
        TestRunner
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   123
        TestSuite
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   124
        TestSuitesScripter
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   125
        #'stx_goodies_sunit'
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   126
        ResumableTestFailure
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   127
        TestCase
588
0d69293eb505 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   128
        TestCaseWithArguments
343
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   129
        TestResource
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   130
        (ExampleSetTest autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   131
        (ResumableTestFailureTestCase autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   132
        (SUnitTest autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   133
        (SimpleTestResource autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   134
        (SimpleTestResourceTestCase autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   135
        (FailingTestResourceTestCase autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   136
        (ManyTestResourceTestCase autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   137
        (SimpleTestResourceA autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   138
        (SimpleTestResourceA1 autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   139
        (SimpleTestResourceA2 autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   140
        (SimpleTestResourceB autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   141
        (SimpleTestResourceB1 autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   142
        (SimpleTestResourceCircular autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   143
        (SimpleTestResourceCircular1 autoload)
ae5570567e27 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
   144
        (CircularTestResourceTestCase autoload)
349
1cd3a8910934 Refactored to use TestResultOutcome
vrany
parents: 343
diff changeset
   145
        TestCaseOutcome
368
4ab674c862a7 Regenerate build files
vrany
parents: 367
diff changeset
   146
        TestResultStX
408
vrany
parents: 404
diff changeset
   147
        TestResultForRunWithDebug
440
4a544fda4bc8 changed: #classNamesAndAttributes
vrany
parents: 427
diff changeset
   148
        (SUnitTests2 autoload)
518
9af19c20c2d6 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 476
diff changeset
   149
        TestCoverageReporter
9af19c20c2d6 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 476
diff changeset
   150
        MetricsReporter
561
aef9302c9dd9 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 545
diff changeset
   151
        TestSkipped
611
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
   152
        (TestSuitesScriptTest autoload)
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
   153
        (TestSuitesHierarchyScriptTest autoload)
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
   154
        (TestSuitesCompoundScriptTest autoload)      
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   155
    )
611
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
   156
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
   157
    "Modified: / 09-07-2014 / 21:32:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   158
!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   159
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   160
extensionMethodNames
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   161
    "lists the extension methods which are to be included in the project.
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   162
     Entries are 2-element array literals, consisting of class-name and selector."
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   163
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   164
    ^ #(
427
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   165
        Block sunitEnsure:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   166
        Block sunitOn:do:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   167
        GenericException sunitAnnounce:toResult:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   168
        GenericException sunitExitWith:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   169
        Object sunitAddDependent:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   170
        Object sunitChanged:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   171
        Object sunitRemoveDependent:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   172
        String sunitAsSymbol
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   173
        String sunitMatch:
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   174
        String sunitSubStrings
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   175
        Symbol sunitAsClass
24632c550c74 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 415
diff changeset
   176
        'GenericException class' sunitSignalWith:
544
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   177
        Behavior sunitSelectors
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   178
        Class sunitName
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   179
    )
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   180
! !
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   181
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   182
!stx_goodies_sunit class methodsFor:'description - project information'!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   183
544
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   184
applicationIconFileName
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   185
    "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
   186
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   187
    ^ nil
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   188
    "/ ^ self applicationName
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   189
!
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   190
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   191
companyName
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   192
    "Return a companyname which will appear in <lib>.rc"
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   193
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   194
    ^ 'eXept Software AG'
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   195
!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   196
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   197
description
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   198
    "Return a description string which will appear in nt.def / bc.def"
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   199
585
e77be448192c changed: #description
Claus Gittinger <cg@exept.de>
parents: 561
diff changeset
   200
    ^ 'Smalltalk/X Unit Testing'
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   201
!
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   202
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   203
legalCopyright
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   204
    "Return a copyright string which will appear in <lib>.rc"
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   205
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   206
    ^ 'Copyright eXept Software AG 1998-2007'
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   207
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   208
    "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
   209
!
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   210
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   211
productName
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   212
    "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
   213
9e6bee79a390 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 543
diff changeset
   214
    ^ 'Smalltalk/X'
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   215
! !
177
f46c94410480 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   216
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   217
!stx_goodies_sunit class methodsFor:'description - svn'!
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
svnRevisionNr
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   220
    "Return a SVN revision number of myself.
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   221
     This number is updated after a commit"
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   222
543
0426c166e29d automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 518
diff changeset
   223
    ^ "$SVN-Revision:"'Nicht versioniertes Verzeichnis'"$"
235
d06056977c51 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 222
diff changeset
   224
! !
d06056977c51 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 222
diff changeset
   225
251
9c8dafcfbf66 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   226
!stx_goodies_sunit class methodsFor:'documentation'!
235
d06056977c51 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 222
diff changeset
   227
356
17065e3b6395 automatic checkIn
vrany
parents: 349
diff changeset
   228
version
588
0d69293eb505 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   229
    ^ '$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
   230
!
17065e3b6395 automatic checkIn
vrany
parents: 349
diff changeset
   231
235
d06056977c51 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 222
diff changeset
   232
version_CVS
588
0d69293eb505 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   233
    ^ '$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
   234
!
149
4fe695222d0a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   235
611
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
   236
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
   237
    ^ '$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
   238
!
1eecc860f4a5 Project definition fixed and HG configured as for CVS mirror repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 588
diff changeset
   239
222
8e6f482297fa Jan's 4.1 version
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   240
version_SVN
588
0d69293eb505 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   241
    ^ '$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
   242
! !
543
0426c166e29d automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 518
diff changeset
   243