Commit Graph

6 Commits

Author SHA1 Message Date
Joël Stemmer
3adb6bab4b testdata: Create generate-golden.go to generate report.xml files
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.
2022-03-22 22:05:23 +00:00
Joël Stemmer
014828bef4 junit: Correctly count skipped tests in junit Testsuite
Fixes #116
2022-03-20 22:35:50 +00:00
Joël Stemmer
fc0a210dc9 junit: Make failures and errors required fields
Fixes #101
2022-03-20 22:35:50 +00:00
Joël Stemmer
2ece8eae1a gtr: Set hostname and timestamp fields when creating JUnit Testsuite
Fixes #117
2022-03-20 22:35:50 +00:00
Joël Stemmer
c2e4b698fc junit: Create junit package 2022-03-11 21:53:00 +00:00
Joël Stemmer
6a7ce5ecd4 Rename tests to testdata 2018-04-21 18:10:48 +01:00