Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hostname and timestamp properties in generated JUnit XML reports #117

Closed
acabarbaye opened this issue Dec 7, 2020 · 0 comments
Closed
Labels
Milestone

Comments

@acabarbaye
Copy link

this is a similar issue to pytest-dev/pytest#5471 which used to be in pytest

The schema of Junit reports (http://windyroad.com.au/dl/Open%20Source/JUnit.xsd) defines some required fields such as timestamp or hostname in testsuite xml element which rendering tools such as Allure rely on.
Current output of go-junit-report is, as follows:

<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
	<testsuite tests="2" failures="2" time="600.111" name="...">
		<properties>
			<property name="go.version" value="go1.14.2"></property>
		</properties>
		<testcase classname="..." name="..." time="0.000">
			<failure message="Failed" type=""></failure>
		</testcase>
		<testcase classname="..." name="..." time="0.000">
...................
		</testcase>
	</testsuite>
</testsuites>

Could such xml attributes be added?

@jstemmer jstemmer added this to the Version 2.0 milestone Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants