diff --git a/junit/junit.go b/junit/junit.go
index 18e5993..d439315 100644
--- a/junit/junit.go
+++ b/junit/junit.go
@@ -241,10 +241,12 @@ func createTestcaseForBenchmark(pkgName string, bm gtr.Benchmark) Testcase {
if bm.Result == gtr.Fail {
tc.Failure = &Result{
Message: "Failed",
+ Data: formatOutput(bm.Output, 0),
}
} else if bm.Result == gtr.Skip {
tc.Skipped = &Result{
Message: "Skipped",
+ Data: formatOutput(bm.Output, 0),
}
} else if len(bm.Output) > 0 {
tc.SystemOut = &Output{Data: formatOutput(bm.Output, 0)}
diff --git a/testdata/036-report.xml b/testdata/036-report.xml
index 31b4d35..5ea9846 100644
--- a/testdata/036-report.xml
+++ b/testdata/036-report.xml
@@ -5,13 +5,13 @@
-
+
-
+
-
+
-
+
-
+
-
+