#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Wed, 07 Mar 2018 23:06:46 +0100
changeset 705 8158508603f3
parent 704 399ebe2a2280
child 706 1c3bc0e12b31
#BUGFIX by cg class: TestCase comment/format in: #testCount class: TestCase class changed: #isTestSelector:
TestCase.st
--- a/TestCase.st	Wed Mar 07 23:06:40 2018 +0100
+++ b/TestCase.st	Wed Mar 07 23:06:46 2018 +0100
@@ -126,7 +126,10 @@
 
 isTestSelector:aSelector
 
-    ^aSelector notNil and:[aSelector startsWith:'test']
+    ^aSelector notNil 
+    and:[(aSelector startsWith:'test')
+    "/ temporary hack - the callers of testCount should use countTests instead
+    and:[aSelector ~= 'testCount']]
 
     "Created: / 06-08-2006 / 11:46:17 / cg"
     "Modified: / 05-12-2009 / 18:50:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
@@ -558,7 +561,8 @@
 testCount
     "obsoleted, because all methods starting with 'test'
      are considered to be tests; so this is a bad name;
-     please use countTests"
+     please use countTests.
+     See TestCase >> isTestSelector:"
 
     ^ self countTests
 ! !