From 4059facfb933c48d65d4fb9fb3f1f03615f19447 Mon Sep 17 00:00:00 2001 From: Wong Her Laang Date: Sat, 27 Jan 2018 12:25:54 +0800 Subject: [PATCH] Pretty print xml result for better viewing. --- output/formatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/formatter.go b/output/formatter.go index da6eb7e..572e807 100644 --- a/output/formatter.go +++ b/output/formatter.go @@ -122,7 +122,7 @@ func reportJUnitXML(w io.Writer, data *reportInfo) error { groupedData := groupDataByRules(data) junitXMLStruct := createJUnitXMLStruct(groupedData) - raw, err := xml.Marshal(junitXMLStruct) + raw, err := xml.MarshalIndent(junitXMLStruct, "", "\t") if err != nil { panic(err) }