Skip to content

Commit 02a7897

Browse files
committed
Merge pull request #89 from vermaete/master
adding the hostname where the test where executed to the JUnit XML te…
2 parents 6264ea2 + 130890d commit 02a7897

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

vunit/test_report.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from xml.etree import ElementTree
1414
from sys import version_info
1515
import os
16+
import socket
1617

1718

1819
class TestReport(object):
@@ -177,6 +178,7 @@ def to_junit_xml_str(self):
177178
root.attrib["failures"] = str(len(failures))
178179
root.attrib["skipped"] = str(len(skipped))
179180
root.attrib["tests"] = str(len(self._test_results))
181+
root.attrib["hostname"] = socket.gethostname()
180182

181183
for result in self._test_results_in_order():
182184
root.append(result.to_xml())

0 commit comments

Comments
 (0)