quickSelfTest/RunUnitTestsStart.st
author Claus Gittinger <cg@exept.de>
Thu, 28 Mar 2019 13:54:38 +0100
changeset 542 aa25a71be62a
parent 541 1ccf832eb9e7
child 549 54b9fecb0bc9
permissions -rw-r--r--
#DOCUMENTATION by cg
class: stx_goodies_builder_quickSelfTest
class definition

class: stx_goodies_builder_quickSelfTest class
added:18 methods
sr@381
     1
"{ Encoding: utf8 }"
sr@381
     2
sr@351
     3
"{ Package: 'stx:goodies/builder/quickSelfTest' }"
sr@351
     4
sr@351
     5
"{ NameSpace: Smalltalk }"
sr@351
     6
sr@351
     7
StandaloneStartup subclass:#RunUnitTestsStart
sr@351
     8
	instanceVariableNames:''
sr@351
     9
	classVariableNames:''
sr@351
    10
	poolDictionaries:''
sr@351
    11
	category:'tests-Regression'
sr@351
    12
!
sr@351
    13
sr@351
    14
!RunUnitTestsStart class methodsFor:'documentation'!
sr@351
    15
sr@351
    16
documentation
sr@351
    17
"
cg@537
    18
    Only for standalone startup.
sr@351
    19
sr@351
    20
    [author:]
cg@541
    21
	sr
sr@351
    22
sr@351
    23
    [instance variables:]
sr@351
    24
sr@351
    25
    [class variables:]
sr@351
    26
sr@351
    27
    [see also:]
sr@351
    28
sr@351
    29
"
sr@351
    30
! !
sr@351
    31
sr@450
    32
!RunUnitTestsStart class methodsFor:'startup'!
sr@351
    33
sr@381
    34
main:argv
sr@381
    35
    self verboseInfo:('starting application').
sr@381
    36
    self startStartBlockProcess.
sr@381
    37
cg@541
    38
    "install a global handler,
cg@541
    39
     which suppresses the updating of the change file"
sr@384
    40
    Processor activeProcess exceptionHandlerSet
cg@541
    41
	on:(Class updateChangeFileQuerySignal)
cg@541
    42
	do:[:ex | ex proceedWith:false].
sr@382
    43
sr@384
    44
    "run the unit tests"
sr@402
    45
    RunUnitTests runWithCompiledUnitTestClasses:true.
sr@450
    46
!
sr@450
    47
sr@450
    48
setupSmalltalkFromArguments:argv
sr@450
    49
    (argv includes:'/?') ifTrue:[
cg@541
    50
	self usage.
cg@541
    51
	AbortOperationRequest raise.
sr@450
    52
    ].
sr@450
    53
sr@450
    54
    ^ super setupSmalltalkFromArguments:argv
cg@538
    55
!
cg@538
    56
cg@538
    57
usage
cg@538
    58
    Stderr cr.
cg@538
    59
    Stderr nextPutLine:'  --help............................this infromation'.
cg@538
    60
    Stderr nextPutLine:'  --settingsFile....................path to a stx settings file (may to set compiler options)'.
cg@538
    61
    Stderr nextPutLine:'  --runOnlyExpeccoUnitTests.........run only expecco related test cases'.
cg@538
    62
    Stderr nextPutLine:'  --resultFile......................path to a file for storing the result as xml'.
cg@538
    63
    Stderr nextPutLine:'  --forceTestCase testName .........class name of a test case (only this test case will be executed)'.
cg@538
    64
    Stderr nextPutLine:'  --run testName ...................same, shorter'.
cg@541
    65
    Stderr nextPutLine:'  --skip testName ..................skip a test class'.
cg@538
    66
cg@538
    67
    "Modified: / 26-03-2019 / 18:47:53 / Claus Gittinger"
sr@351
    68
! !
sr@351
    69
sr@351
    70
!RunUnitTestsStart class methodsFor:'documentation'!
sr@351
    71
sr@351
    72
version
sr@351
    73
    ^ '$Header$'
sr@351
    74
!
sr@351
    75
sr@351
    76
version_CVS
sr@351
    77
    ^ '$Header$'
sr@351
    78
! !