Skip to content

Commit

Permalink
Merge pull request #2 from fasmat/feature/add-error-message
Browse files Browse the repository at this point in the history
Error should include a more telling message
  • Loading branch information
fasmat authored Sep 19, 2021
2 parents 5bea69b + 8c5dde9 commit fb6ae89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/go2junit/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func parse(w io.Writer, r io.Reader, fail bool) {
testcase.Error = &types.Error{
TypeAttr: "Error",
MessageAttr: "test failed",
Text: testcase.Systemout.Text,
}
default:
log.Printf("unknown test action found: %+v\n", event)
Expand Down
1 change: 1 addition & 0 deletions types/junit_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type Error struct {
XMLName xml.Name `xml:"error"`
TypeAttr string `xml:"type,attr,omitempty"`
MessageAttr string `xml:"message,attr,omitempty"`
Text string `xml:",cdata"`
}

type Skipped struct {
Expand Down

0 comments on commit fb6ae89

Please sign in to comment.