diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/tests/XmlTestRunner.py | 8 |
1 files changed, 8 insertions, 0 deletions
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): <description>%s</description> </test>""" % (test.id(), test.shortDescription()) + def addError(self, test, err): + unittest.TestResult.addError(self, test, err) + print """ <test result="error"> + <id>%s</id> + <description>%s</description> + </test>""" % (test.id(), test.shortDescription()) + # TODO: add err + def addFailure(self, test, err): unittest.TestResult.addFailure(self, test, err) print """ <test result="failure"> |
