mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-05 13:32:54 -05:00
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:
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user