From 4317a1718d9cf73274ca96f6deb3871888928cc9 Mon Sep 17 00:00:00 2001 From: melleuch Date: Fri, 15 Dec 2023 16:30:16 +0100 Subject: [PATCH] [XTR-44] : add skipped in test suit level --- junit_xml/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/junit_xml/__init__.py b/junit_xml/__init__.py index 0cfef29..4095451 100644 --- a/junit_xml/__init__.py +++ b/junit_xml/__init__.py @@ -288,7 +288,7 @@ def to_xml_report_string(test_suites, prettyprint=True, encoding=None): attributes = defaultdict(int) for ts in test_suites: ts_xml = ts.build_xml_doc(encoding=encoding) - for key in ["disabled", "errors", "failures", "tests"]: + for key in ["disabled", "errors", "failures", "tests","skipped"]: attributes[key] += int(ts_xml.get(key, 0)) for key in ["time"]: attributes[key] += float(ts_xml.get(key, 0))