ARO-RP/vendor/github.com/AlekSi/gocov-xml
Julien Stroheker 735cb62087
Juliens/az pipelines fix (#3)
* apply review

* test vars

* python and golang fix

* using vendor bin

* fix and clean
2020-01-27 15:46:13 -05:00
..
.gitignore Juliens/az pipelines fix (#3) 2020-01-27 15:46:13 -05:00
LICENSE Juliens/az pipelines fix (#3) 2020-01-27 15:46:13 -05:00
Makefile Juliens/az pipelines fix (#3) 2020-01-27 15:46:13 -05:00
README.md Juliens/az pipelines fix (#3) 2020-01-27 15:46:13 -05:00
coverage-04.dtd Juliens/az pipelines fix (#3) 2020-01-27 15:46:13 -05:00
coverage-with-data.xml Juliens/az pipelines fix (#3) 2020-01-27 15:46:13 -05:00
gocov-xml.go Juliens/az pipelines fix (#3) 2020-01-27 15:46:13 -05:00

README.md

gocov XML

A tool to generate Go coverage in XML report for using with tools/plugins like Jenkins/Cobertura.

Table of Contents

This is a simple helper tool for generating XML output in Cobertura format for CIs like Jenkins, vsts and others from github.com/axw/gocov output. The generated XML output is in the latest coverage-04.dtd schema

Installation

Just type the following to install the program and its dependencies:

go get github.com/axw/gocov/...
go get github.com/AlekSi/gocov-xml

Usage

NOTE: gocov-xml reads data from the standard input.

gocov [-source <absolute path to source>]

Where,

  • source: Absolute path to source. Defaults to the current working directory.

Examples

Generate coverage by passing gocov output as input to gocov-xml

gocov test github.com/gorilla/mux | gocov-xml > coverage.xml

Specifying optional source

gocov test github.com/gorilla/mux | gocov-xml -source /abs/path/to/source > coverage.xml

Authors