mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-05 13:08:07 -05:00

The testdata directory contains various inputs and the resulting report.xml that is expected to be generated. Making changes that result in differences in the generated XML reports requires the report.xml files to be manually updated. This is time consuming and error prone. The generate-golden.go script (re)generates all report.xml files in the testdata directory from the corresponding input. This can be done by simply running `go generate` from within the testdata directory. Make sure the generated reports contain the changes you expected before committing them. As part of this change, all reports have been regenerated. The diffs in the report.xml files are caused by the following recent changes: - XML attributes now appear in the order as defined in the structs in the junit package. - Failure and error messages are now wrapped in <![CDATA[]]>. - Package names are no longer truncated to the last path component.
14 lines
599 B
XML
14 lines
599 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<testsuites tests="2">
|
|
<testsuite name="package/one" tests="2" failures="0" errors="0" hostname="hostname" time="9.415" timestamp="2022-01-01T00:00:00Z">
|
|
<properties>
|
|
<property name="go.version" value="1.0"></property>
|
|
</properties>
|
|
<testcase name="BenchmarkIpsHistoryInsert" classname="package/one" time="0.000052568"></testcase>
|
|
<testcase name="BenchmarkIpsHistoryLookup" classname="package/one" time="0.000015208"></testcase>
|
|
<system-out><![CDATA[goos: darwin
|
|
goarch: amd64
|
|
pkg: code.internal/state]]></system-out>
|
|
</testsuite>
|
|
</testsuites>
|