Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/vendor/github.com/jstemmer/go-junit-report
Peter Štibraný d4cae667ae loki: use new runtimeconfig package from Cortex (#1484) 5 years ago
..
formatter loki: use new runtimeconfig package from Cortex (#1484) 5 years ago
parser loki: use new runtimeconfig package from Cortex (#1484) 5 years ago
.gitignore loki: use new runtimeconfig package from Cortex (#1484) 5 years ago
.travis.yml loki: use new runtimeconfig package from Cortex (#1484) 5 years ago
LICENSE loki: use new runtimeconfig package from Cortex (#1484) 5 years ago
README.md loki: use new runtimeconfig package from Cortex (#1484) 5 years ago
go-junit-report.go loki: use new runtimeconfig package from Cortex (#1484) 5 years ago
go.mod loki: use new runtimeconfig package from Cortex (#1484) 5 years ago

README.md

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