We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6264ea2 + 130890d commit 02a7897Copy full SHA for 02a7897
1 file changed
vunit/test_report.py
@@ -13,6 +13,7 @@
13
from xml.etree import ElementTree
14
from sys import version_info
15
import os
16
+import socket
17
18
19
class TestReport(object):
@@ -177,6 +178,7 @@ def to_junit_xml_str(self):
177
178
root.attrib["failures"] = str(len(failures))
179
root.attrib["skipped"] = str(len(skipped))
180
root.attrib["tests"] = str(len(self._test_results))
181
+ root.attrib["hostname"] = socket.gethostname()
182
183
for result in self._test_results_in_order():
184
root.append(result.to_xml())
0 commit comments