Skip to content

Conversation

wongherlung
Copy link
Contributor

@wongherlung wongherlung commented Jan 27, 2018

This PR creates a new output format, namely: JUnit XML format, following IBM's definition.

This allows the results generated by gas to be used by CI tools, like Jenkins, which are able to parse/read JUnit XML results in their various workflows.

Example command to output JUnit XML:

gas -exclude=G104 -fmt=junit-xml -out=report.xml ./...

This PR is in reference to #158.

@wongherlung wongherlung changed the title Junit xml output JUnit XML output Jan 27, 2018
raw = append(xmlHeader, raw...)
_, err = w.Write(raw)
if err != nil {
panic(err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we just return the error here instead of panic?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opps. yes, should return an error here.

@gcmurphy
Copy link
Member

Thanks this looks a great addition.

@gcmurphy gcmurphy merged commit e92170b into securego:master Jan 30, 2018
@gcmurphy gcmurphy mentioned this pull request Jan 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants