Skip to content

Commit ef83d9f

Browse files
authored
Generate xunit files valid for the junit10.xsd (#319)
1 parent 9b5c4e6 commit ef83d9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

colcon_core/task/python/test/pytest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ async def step(self, context, env, setup_py_data): # noqa: D102
147147
# and doesn't generate a result file at all
148148
junit_xml_path.parent.mkdir(parents=True, exist_ok=True)
149149
junit_xml_path.write_text("""<?xml version="1.0" encoding="UTF-8"?>
150-
<testsuite name="{context.pkg.name}" tests="1" failures="1" time="0" errors="0" skip="0">
151-
<testcase classname="{context.pkg.name}" name="pytest.missing_result" status="run" time="0">
150+
<testsuite name="{context.pkg.name}" tests="1" failures="0" time="0" errors="1" skipped="0">
151+
<testcase classname="{context.pkg.name}" name="pytest.missing_result" time="0">
152152
<failure message="The test invocation failed without generating a result file."/>
153153
</testcase>
154154
</testsuite>

0 commit comments

Comments
 (0)