435c0d9fc8
This PR switches the Nomad repository from using govendor to Go modules for managing dependencies. Aspects of the Nomad workflow remain pretty much the same. The usual Makefile targets should continue to work as they always did. The API submodule simply defers to the parent Nomad version on the repository, keeping the semantics of API versioning that currently exists.
1.4 KiB
1.4 KiB
go-junit-report
Converts go test
output to an xml report, suitable for applications that
expect junit xml reports (e.g. Jenkins).
Installation
Go version 1.1 or higher is required. Install or update using the go get
command:
go get -u github.com/jstemmer/go-junit-report
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
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