diff --git a/src/pytest_html/nextgen.py b/src/pytest_html/nextgen.py
index 4e9d8c74..6bbc75b1 100644
--- a/src/pytest_html/nextgen.py
+++ b/src/pytest_html/nextgen.py
@@ -243,6 +243,9 @@ def pytest_runtest_logreport(self, report):
config=self._config, report=report
)
+ if "node" in data:
+ data["node"] = str(data["node"])
+
test_id = report.nodeid
if report.when != "call":
test_id += f"::{report.when}"
diff --git a/testing/test_new.py b/testing/test_new.py
index 481fe7e9..cf8b038a 100644
--- a/testing/test_new.py
+++ b/testing/test_new.py
@@ -471,3 +471,8 @@ def pytest_runtest_makereport(item, call):
assert_that(str(element)).is_equal_to(
f''
)
+
+ def test_xdist(self, pytester):
+ pytester.makepyfile("def test_xdist(): pass")
+ page = run(pytester, "report.html", "-n1")
+ assert_results(page, passed=1)