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):
151
151
res = TestResult ()
152
152
for c in suite .tests :
153
153
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
+
154
164
return res
155
165
156
166
class TestResult :
@@ -203,7 +213,3 @@ def test_cases(m):
203
213
suite .addTest (c )
204
214
runner = TestRunner ()
205
215
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