summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-07-26 19:30:25 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-07-26 19:30:25 +0000
commit8d1bd57755ceebe0fa5a3926223a1437c9869108 (patch)
tree1f4ab2e2b67de15520d3de5fe220c10702ae0c1e /python
parentc5c0515bb2202e58d3534d23794332eef2dbe36e (diff)
downloadlasso-8d1bd57755ceebe0fa5a3926223a1437c9869108.tar.gz
lasso-8d1bd57755ceebe0fa5a3926223a1437c9869108.tar.xz
lasso-8d1bd57755ceebe0fa5a3926223a1437c9869108.zip
output tags when error occurs (not just success or failures)
Diffstat (limited to 'python')
-rw-r--r--python/tests/XmlTestRunner.py8
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">