Add surrounding <testsuites> tag.

* If a test log contains more than one package we need to wrap it
  in a <testsuites> element in order to be valid xml. Bamboo
  cannot read the file if it is not valid xml.
This commit is contained in:
Nick Palmer
2015-01-13 18:35:34 -08:00
parent 18ee6df2f2
commit 6d2ab46d4f
7 changed files with 58 additions and 42 deletions

View File

@ -233,7 +233,7 @@ func TestJUnitFormatter(t *testing.T) {
}
if string(junitReport.Bytes()) != report {
t.Fatalf("Report xml ==\n%s, want\n%s", string(junitReport.Bytes()), report)
t.Fatalf("Fail: %s Report xml ==\n%s, want\n%s", testCase.name, string(junitReport.Bytes()), report)
}
}
}