*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Thu, 28 Mar 2019 15:57:11 +0100
changeset 55057af1d2ef11e
parent 549 54b9fecb0bc9
child 551 e8b3552904ba
*** empty log message ***
quickSelfTest/RunUnitTests.st
     1.1 --- a/quickSelfTest/RunUnitTests.st	Thu Mar 28 15:25:46 2019 +0100
     1.2 +++ b/quickSelfTest/RunUnitTests.st	Thu Mar 28 15:57:11 2019 +0100
     1.3 @@ -222,22 +222,28 @@
     1.4      self logInfo:'%1 unit test(s) collected' with:(unitTestSuite tests size).
     1.5  
     1.6      self logInfo:'start tests...'.
     1.7 -    result := unitTestSuite
     1.8 -	run:TestResultStX new
     1.9 -	beforeEachDo:[:test |
    1.10 -	    self logInfo:'Run "%1"' with:test printString
    1.11 -	]
    1.12 -	afterEachDo:[:test :result|
    1.13 -	    |execTime status|
    1.14 +    [
    1.15 +	result :=
    1.16 +	    unitTestSuite
    1.17 +		run:TestResultStX new
    1.18 +		beforeEachDo:[:test |
    1.19 +		    self logInfo:'Run "%1"' with:test printString
    1.20 +		]
    1.21 +		afterEachDo:[:test :result|
    1.22 +		    |execTime status|
    1.23  
    1.24 -	    execTime := result lastOutcome executionTimeDuration.
    1.25 -	    status := result lastOutcome result.
    1.26 -	    self logInfo:'   %1 (%2)' with:status with:execTime.
    1.27 -	    (status == TestResult stateFail or:[status == TestResult stateError]) ifTrue:[
    1.28 -		self logInfo:'   ==================='.
    1.29 -	    ]
    1.30 -	]
    1.31 -	debug:debug.
    1.32 +		    execTime := result lastOutcome executionTimeDuration.
    1.33 +		    status := result lastOutcome result.
    1.34 +		    self logInfo:'   %1 (%2)' with:status with:execTime.
    1.35 +		    (status == TestResult stateFail or:[status == TestResult stateError]) ifTrue:[
    1.36 +			self logInfo:'   ==================='.
    1.37 +		    ]
    1.38 +		]
    1.39 +		debug:debug.
    1.40 +    ] ifCurtailed:[
    1.41 +	self logWarning:'aborted in:.'.
    1.42 +	thisContext fullPrintAllOn:Stderr.
    1.43 +    ].
    1.44  
    1.45      self logInfo:'tests finished.'.
    1.46