quickSelfTest/RunUnitTestsStart.st
author sr
Tue, 29 May 2018 16:08:46 +0200
changeset 519 1c3b66422a07
parent 485 652613b4eb5f
child 536 0d8dabdb4725
permissions -rw-r--r--
class: RegressionTests::HTTPServerTests changed: #setUp

"{ Encoding: utf8 }"

"{ Package: 'stx:goodies/builder/quickSelfTest' }"

"{ NameSpace: Smalltalk }"

StandaloneStartup subclass:#RunUnitTestsStart
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'tests-Regression'
!

!RunUnitTestsStart class methodsFor:'documentation'!

documentation
"
    documentation to be added.

    [author:]
        sr

    [instance variables:]

    [class variables:]

    [see also:]

"
! !

!RunUnitTestsStart class methodsFor:'constants'!

usage
    Stderr cr.
    Stderr nextPutLine:'  --help............................this infromation'.
    Stderr nextPutLine:'  --settingsFile....................path to a stx settings file (may to set compiler options)'.
    Stderr nextPutLine:'  --runOnlyExpeccoUnitTests.........run only expecco related test cases'.
    Stderr nextPutLine:'  --resultFile......................path to a file for storing the result as xml'.
    Stderr nextPutLine:'  --forceTestCase...................class name of a test case (only this test case will be executed)'.
! !

!RunUnitTestsStart class methodsFor:'startup'!

main:argv
    self verboseInfo:('starting application').
    self startStartBlockProcess.

    "install a global handler, 
     which suppresses the updating of the change file"       
    Processor activeProcess exceptionHandlerSet
        on:(Class updateChangeFileQuerySignal)
        do:[:ex | ex proceedWith:false].

    "run the unit tests"
    RunUnitTests runWithCompiledUnitTestClasses:true.
!

setupSmalltalkFromArguments:argv
    (argv includes:'/?') ifTrue:[
        self usage.
        AbortOperationRequest raise.
    ].

    ^ super setupSmalltalkFromArguments:argv
! !

!RunUnitTestsStart class methodsFor:'documentation'!

version
    ^ '$Header$'
!

version_CVS
    ^ '$Header$'
! !