go-junit-report

Convert go test output to junit xml

Github stars Tracking Chart

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.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

Main metrics

Overview
Name With Ownerjstemmer/go-junit-report
Primary LanguageGo
Program languageGo (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2012-03-09 19:15:01
Pushed At2024-08-20 22:12:14
Last Commit At2023-10-19 00:36:43
Release Count6
Last Release Namev2.1.0 (Posted on 2023-10-19 00:36:28)
First Release Namev0.9.0 (Posted on 2019-10-04 00:19:29)
用户参与
Stargazers Count805
Watchers Count9
Fork Count228
Commits Count363
Has Issues Enabled
Issues Count92
Issue Open Count23
Pull Requests Count33
Pull Requests Open Count10
Pull Requests Close Count48
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private