File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,16 @@ def run(self, suite):
151151 res = TestResult ()
152152 for c in suite .tests :
153153 run_class (c , res )
154+
155+ print ("Ran %d tests\n " % res .testsRun )
156+ if res .failuresNum > 0 or res .errorsNum > 0 :
157+ print ("FAILED (failures=%d, errors=%d)" % (res .failuresNum , res .errorsNum ))
158+ else :
159+ msg = "OK"
160+ if res .skippedNum > 0 :
161+ msg += " (%d skipped)" % res .skippedNum
162+ print (msg )
163+
154164 return res
155165
156166class TestResult :
@@ -203,7 +213,3 @@ def test_cases(m):
203213 suite .addTest (c )
204214 runner = TestRunner ()
205215 result = runner .run (suite )
206- msg = "Ran %d tests" % result .testsRun
207- if result .skippedNum > 0 :
208- msg += " (%d skipped)" % result .skippedNum
209- print (msg )
You can’t perform that action at this time.
0 commit comments