mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-06 14:02:52 -05:00
Set failure message when a test failed.
The failure tag is required when a test failed. The failure message is set to 'Failed' for now since we don't have the actual failure message yet.
This commit is contained in:
@ -74,7 +74,7 @@ func JUnitReportXML(report *Report, w io.Writer) error {
|
||||
ts.Failures += 1
|
||||
|
||||
// TODO: set error message
|
||||
testCase.Failure = ""
|
||||
testCase.Failure = "Failed"
|
||||
}
|
||||
|
||||
ts.TestCases = append(ts.TestCases, testCase)
|
||||
|
Reference in New Issue
Block a user