Joël Stemmer
e0a4faed09
fixup: add skipped attr to testsuites
2022-03-22 22:05:23 +00:00
Joël Stemmer
4b87b03e55
junit: Use the timestamp from the gtr.Report when creating Testsuites
2022-03-22 22:05:23 +00:00
Joël Stemmer
10affc0da1
Store arbitrary key/value properties in Report
2022-03-22 22:05:23 +00:00
Joël Stemmer
a77bfe0f1c
gtr,junit: move creation of JUnit testsuites from gtr to junit
...
Package gtr shouldn't need to know about the existence of different
output formats like junit.
2022-03-22 22:05:23 +00:00
Joël Stemmer
458fe89a9a
Omit empty <properties> tag when there are no properties.
...
Go doesn't omit empty parent tags for empty values[1], so we'll work
around this for now by creating a pointer to the property slice.
[1]: https://github.com/golang/go/issues/7233 .
2022-03-20 22:35:50 +00:00
Joël Stemmer
0c57c726ce
junit: Add documentation to the junit package
2022-03-20 22:35:50 +00:00
Joël Stemmer
76f68922a2
junit: Output SystemOut and SystemErr contents as CDATA
2022-03-20 22:35:50 +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
dde9ef5310
junit: Change JUnit Result Data field to cdata
...
The Result Data field contains the test output that was read from stdin.
This used to be a chardata field, which escapes many characters in the
resulting XML. Writing this output with <![CDATA[]]> tags makes the raw
XML output much easier to read in e.g. a text editor.
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
050e22e86b
junit: Omit Testcase attributes if they're empty
2022-03-20 22:35:50 +00:00
Joël Stemmer
c2e4b698fc
junit: Create junit package
2022-03-11 21:53:00 +00:00