output tags when error occurs (not just success or failures)
This commit is contained in:
parent
c5c0515bb2
commit
8d1bd57755
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue