mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-04 20:50:14 -05:00
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.
This commit is contained in:
parent
fc0a210dc9
commit
dde9ef5310
@ -102,7 +102,7 @@ type Property struct {
|
||||
type Result struct {
|
||||
Message string `xml:"message,attr"`
|
||||
Type string `xml:"type,attr,omitempty"`
|
||||
Data string `xml:",chardata"`
|
||||
Data string `xml:",cdata"`
|
||||
}
|
||||
|
||||
// FormatDuration returns the JUnit string representation of the given
|
||||
|
Loading…
x
Reference in New Issue
Block a user