Convert Go test output to JUnit XML
_test
suffix.-race
flag in go test
.=== NAME
lines introduced in Go1.20testsuite
.Testsuites.WriteXML
convenience method.go test -json
output.-subtest-mode
flag to exclude or ignore results of subtest parent tests.-in
and -out
flags for specifying input and output files respectively.-iocopy
flag to copy stdin directly to stdout.-prop
flags to set key/value properties in generated report.-parser
flag to switch between regular go test
(default) and go test -json
parsing.<![CDATA[]]>
tags for improved readability.hostname
, timestamp
and id
attributes to JUnit XML.formatter
and parser
packages have been replaced with junit
and parser/gotest
packages respectively.-go-version
flag.