Show More
@@ -1,4 +1,4 b'' | |||
|
1 | from __future__ import print_function | |
|
1 | from __future__ import absolute_import, print_function | |
|
2 | 2 | |
|
3 | 3 | import unittest |
|
4 | 4 | |
@@ -39,6 +39,12 b' class TestResult(unittest._TextTestResul' | |||
|
39 | 39 | def addIgnore(self, test, reason): |
|
40 | 40 | print("IGNORE!", test, reason) |
|
41 | 41 | |
|
42 | def onStart(self, test): | |
|
43 | print("ON_START!", test) | |
|
44 | ||
|
45 | def onEnd(self): | |
|
46 | print("ON_END!") | |
|
47 | ||
|
42 | 48 | def addOutputMismatch(self, test, ret, got, expected): |
|
43 | 49 | return False |
|
44 | 50 |
@@ -1252,8 +1252,10 b' Add support for external test formatter' | |||
|
1252 | 1252 | $ CUSTOM_TEST_RESULT=basic_test_result $PYTHON $TESTDIR/run-tests.py --with-hg=`which hg` "$@" test-success.t test-failure.t |
|
1253 | 1253 | |
|
1254 | 1254 | # Ran 2 tests, 0 skipped, 0 failed. |
|
1255 | ON_START! <__main__.TestSuite tests=[<__main__.TTest testMethod=test-failure.t>, <__main__.TTest testMethod=test-success.t>]> | |
|
1255 | 1256 |
|
|
1256 | 1257 | SUCCESS! test-success.t |
|
1258 | ON_END! | |
|
1257 | 1259 | |
|
1258 | 1260 |
|
|
1259 | 1261 | ====================================== |
General Comments 0
You need to be logged in to leave comments.
Login now