#BUGFIX by cg expecco_18_1_0 expecco_18_1_0wa1
authorClaus Gittinger <cg@exept.de>
Fri, 18 May 2018 13:18:35 +0200
changeset 713 75290ec5aa59
parent 712 61e5116a2649
child 714 43c6db2bc66a
#BUGFIX by cg class: TestCase changed: #runCase #runCaseAsFailure:
TestCase.st
--- a/TestCase.st	Thu May 17 10:15:18 2018 +0200
+++ b/TestCase.st	Fri May 18 13:18:35 2018 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "{ Package: 'stx:goodies/sunit' }"
 
 "{ NameSpace: Smalltalk }"
@@ -1017,7 +1019,13 @@
         didSetup := true.
         self performTest.
     ] ensure: [
-        didSetup ifTrue:[ self safeTearDown ]
+        didSetup 
+            ifTrue:[ self safeTearDown ]
+            ifFalse:[ 
+                "/ can we tearDown here????
+                Transcript showCR:'error in setup - no teardown' 
+                "/ self error:'error in setup' 
+            ].
     ]
 
     "Modified: / 13-07-2017 / 14:03:01 / cg"
@@ -1043,7 +1051,13 @@
             didSetup := true.
             self openDebuggerOnFailingTestMethod
         ] ensure: [
-            didSetup ifTrue:[ self tearDown ]
+            didSetup 
+                ifTrue:[ self tearDown ]
+                ifFalse:[ 
+                    "/ can we tearDown here????
+                    Transcript showCR:'error in setup - no teardown' 
+                    "/ self error:'error in setup' 
+                ].
         ]
     ] ensure: [aSemaphore signal].