Package: python-junitxml Version: 0.6-1.2 Tags: upstream patch pyjunitxml represents test skips as <skip> rather than <skipped>. Thus consumers such as Jenkins' junit-plugin recognize skipped tests as successful ones when generated with pyjunitxml. The current format specification seems to be http://llg.cubic.org/docs/junit/ and it agrees with junit-plugin. Thus the bug is in pyjunitxml. I am attaching a patch to address the issue.
Helmut
From: Helmut Grohne <[email protected]> Subject: fix formatting of skips http://llg.cubic.org/docs/junit/ A typical symptom is that consumers (such as Jenkins junit-plugin) treats skips as successes. Index: pyjunitxml-0.6/junitxml/__init__.py =================================================================== --- pyjunitxml-0.6.orig/junitxml/__init__.py +++ pyjunitxml-0.6/junitxml/__init__.py @@ -198,7 +198,7 @@ class JUnitXmlResult(unittest.TestResult pass self._test_case_string(test) self._results.append('>\n') - self._results.append('<skip>%s</skip>\n</testcase>\n'% _escape_attr(reason)) + self._results.append('<skipped>%s</skipped>\n</testcase>\n'% _escape_attr(reason)) def addUnexpectedSuccess(self, test): try:

