Pretty print xml result for better viewing.

This commit is contained in:
Wong Her Laang 2018-01-27 12:25:54 +08:00
parent 1346bd37ca
commit 4059facfb9

View file

@ -122,7 +122,7 @@ func reportJUnitXML(w io.Writer, data *reportInfo) error {
groupedData := groupDataByRules(data) groupedData := groupDataByRules(data)
junitXMLStruct := createJUnitXMLStruct(groupedData) junitXMLStruct := createJUnitXMLStruct(groupedData)
raw, err := xml.Marshal(junitXMLStruct) raw, err := xml.MarshalIndent(junitXMLStruct, "", "\t")
if err != nil { if err != nil {
panic(err) panic(err)
} }