From 8d1bd57755ceebe0fa5a3926223a1437c9869108 Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Mon, 26 Jul 2004 19:30:25 +0000 Subject: output tags when error occurs (not just success or failures) --- python/tests/XmlTestRunner.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python') diff --git a/python/tests/XmlTestRunner.py b/python/tests/XmlTestRunner.py index 282362ef..aef726c7 100644 --- a/python/tests/XmlTestRunner.py +++ b/python/tests/XmlTestRunner.py @@ -32,6 +32,14 @@ class XmlTestResult(unittest.TestResult): %s """ % (test.id(), test.shortDescription()) + def addError(self, test, err): + unittest.TestResult.addError(self, test, err) + print """ + %s + %s + """ % (test.id(), test.shortDescription()) + # TODO: add err + def addFailure(self, test, err): unittest.TestResult.addFailure(self, test, err) print """ -- cgit