quickSelfTest/Start.st
author sr
Wed, 18 Oct 2017 11:31:10 +0200
changeset 503 b46d8fb5b4cc
parent 409 74a4f136cf81
child 512 9d572c1caefa
permissions -rw-r--r--
class: RegressionTests::RxTests class definition added:174 methods class: RegressionTests::RxTests class added: #documentation #version #version_CVS

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


"
	ensure that required packages are present
"
Smalltalk loadPackage:'stx:goodies/sunit'.
(TestCase notNil and:[TestCase isLoaded]) ifFalse:[
	Stdout showCR:'error: missing #TestCase class after sunit package load'.
	Smalltalk exit:1.
].

Smalltalk
	fileInClass:#'stx_goodies_regression'
	package:'stx:goodies/regression'.
(Smalltalk at:#'stx_goodies_regression') isNil ifTrue:[
	Stdout showCR:'error: missing #stx_goodies_regression'.
    Smalltalk exit:1.
].

fn := 'RunUnitTests.st' asFilename.
fn exists ifFalse:[
    fn := '../RunUnitTests.st' asFilename.
].

fn fileIn.

(Smalltalk at:#'RunUnitTests') isNil ifTrue:[
	Stdout showCR:'error: missing #RunUnitTests'.
    Smalltalk exit:1.
].

Smalltalk loadPackage:'stx:libcompat'.
Smalltalk loadPackage:'stx:libjavascript'.


"
	run the unit tests
"
RunUnitTests run.