TestCase.st
changeset 700 2309c94fe81c
parent 690 cb50d1d3ffeb
child 703 7cf6ad732dc9
--- a/TestCase.st	Thu Jan 25 19:45:45 2018 +0100
+++ b/TestCase.st	Wed Mar 07 17:26:05 2018 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "{ Package: 'stx:goodies/sunit' }"
 
 "{ NameSpace: Smalltalk }"
@@ -455,6 +457,17 @@
 
 !TestCase class methodsFor:'running'!
 
+debug
+    "run myself as a suite with debugging; return the result"
+
+    ^ self suite debug
+
+    "
+     SOAP::XeXMLTests run
+     RegressionTests::OperatingSystemTest run
+    "
+!
+
 run
     "run myself as a suite; return the result"
 
@@ -501,6 +514,13 @@
 
 !TestCase methodsFor:'accessing'!
 
+countTests
+
+    ^1
+
+    "Created: / 04-08-2011 / 13:03:25 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
 resources
 	"We give TestCase this instance-side method so that methods polymorphic with TestSuite can be code-identical.  Having this instance-side method also helps when writing tests of resource behaviour. Except for such tests, it is rare to override this method and should not be done without thought.  If there were a good reason why a single test case needed to share tests requiring different resources, it might be legitimate."
 
@@ -533,13 +553,6 @@
     ^false
 
     "Created: / 28-11-2012 / 18:03:29 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-!
-
-testCount
-
-    ^1
-
-    "Created: / 04-08-2011 / 13:03:25 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
 !TestCase methodsFor:'accessing & queries'!