diff options
Diffstat (limited to 'selftest/format-subunit')
-rwxr-xr-x | selftest/format-subunit | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/selftest/format-subunit b/selftest/format-subunit index b949d8e9aa..067fb06610 100755 --- a/selftest/format-subunit +++ b/selftest/format-subunit @@ -125,6 +125,21 @@ class PlainFormatter(subunithelper.TestsuiteEnabledTestResult): def startTest(self, test): pass + def addSuccess(self, test, details=None): + self.end_test(test.id(), "success", False, details) + + def addError(self, test, details=None): + self.end_test(test.id(), "error", True, details) + + def addFailure(self, test, details=None): + self.end_test(test.id(), "failure", True, details) + + def addSkip(self, test, details=None): + self.end_test(test.id(), "skip", False, details) + + def addExpectedFail(self, test, details=None): + self.end_test(test.id(), "xfail", False, details) + def end_test(self, testname, result, unexpected, reason=None): if not unexpected: self.test_output[self.name] = "" |