GithubHelp home page GithubHelp logo

go-junit-report's Introduction

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

This repo contains go-junit-report tool with fixed multiline output.

Installation

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

go get github.com/ADKosm/go-junit-report
go install github.com/ADKosm/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/ADKosm/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

go-junit-report's People

Contributors

adkosm avatar ascandella avatar benzaita avatar brittinator avatar ikarishinjieva avatar ixdy avatar jmillikin-stripe avatar johnschnake avatar jstemmer avatar khiemfle avatar liggitt avatar maneac avatar mark-rushakoff avatar mattdelco avatar nickpalmer avatar nmiyake avatar nullbio avatar pascalbourdier avatar posener avatar themichaellai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.