| 1 | diff --git a/src/_pytest/junitxml.py b/src/_pytest/junitxml.py |
| 2 | --- a/src/_pytest/junitxml.py |
| 3 | +++ b/src/_pytest/junitxml.py |
| 4 | @@ -10,9 +10,11 @@ |
| 5 | """ |
| 6 | import functools |
| 7 | import os |
| 8 | +import platform |
| 9 | import re |
| 10 | import sys |
| 11 | import time |
| 12 | +from datetime import datetime |
| 13 | |
| 14 | import py |
| 15 | |
| 16 | @@ -666,6 +668,8 @@ def pytest_sessionfinish(self): |
| 17 | skipped=self.stats["skipped"], |
| 18 | tests=numtests, |
| 19 | time="%.3f" % suite_time_delta, |
| 20 | + timestamp=datetime.fromtimestamp(self.suite_start_time).isoformat(), |
| 21 | + hostname=platform.node(), |
| 22 | ) |
| 23 | logfile.write(Junit.testsuites([suite_node]).unicode(indent=0)) |
| 24 | logfile.close() |