Skip to content

Commit da834fe

Browse files
committed
Add number of skipped testcases
based on @munkyu's pull request #130.
1 parent 334b6ea commit da834fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xmlrunner/result.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ def _report_testsuite(suite_name, tests, xml_document, parentElement,
343343
errors = filter(lambda e: e.outcome == e.ERROR, tests)
344344
testsuite.setAttribute('errors', str(len(list(errors))))
345345

346+
skips = filter(lambda e: e.outcome == _TestInfo.SKIP, tests)
347+
testsuite.setAttribute('skipped', str(len(list(skips))))
348+
346349
_XMLTestResult._report_testsuite_properties(
347350
testsuite, xml_document, properties)
348351

0 commit comments

Comments
 (0)