syzkaller/vendor/github.com/jstemmer/go-junit-report
Dmitry Vyukov 4705549800 vendor: update vendored files
Required to switch dashboard/app to go1.11.

Update #1461
2020-01-29 16:01:06 +01:00
..
formatter vendor: update vendored files 2020-01-29 16:01:06 +01:00
parser vendor: update vendored files 2020-01-29 16:01:06 +01:00
.gitignore vendor: update vendored files 2020-01-29 16:01:06 +01:00
.travis.yml vendor: update vendored files 2020-01-29 16:01:06 +01:00
go-junit-report.go vendor: update vendored files 2020-01-29 16:01:06 +01:00
go.mod vendor: update vendored files 2020-01-29 16:01:06 +01:00
LICENSE vendor: update vendored files 2020-01-29 16:01:06 +01:00
README.md vendor: update vendored files 2020-01-29 16:01:06 +01:00

go-junit-report

Converts go test output to an xml report, suitable for applications that expect junit xml reports (e.g. Jenkins).

Build Status Report Card

Installation

Go version 1.2 or higher is required. Install or update using the go get command:

go get -u github.com/jstemmer/go-junit-report

Usage

go-junit-report reads the go test verbose output from standard in and writes junit compatible XML to standard out.

go test -v 2>&1 | go-junit-report > report.xml

Note that it also can parse benchmark output with -bench flag:

go test -v -bench . -count 5 2>&1 | go-junit-report > report.xml

Contribution

Create an Issue and discuss the fix or feature, then fork the package. Clone to github.com/jstemmer/go-junit-report. This is necessary because go import uses this path. Fix or implement feature. Test and then commit change. Specify #Issue and describe change in the commit message. Create Pull Request. It can be merged by owner or administrator then.

Run Tests

go test