• Stars
    star
    129
  • Rank 270,185 (Top 6 %)
  • Language
    Go
  • License
    MIT License
  • Created over 11 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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:

For Go 1.17 and above:

go install github.com/axw/gocov/gocov@latest
go install github.com/AlekSi/gocov-xml@latest

For previous Go versions:

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

More Repositories

1

pointer

Go package pointer provides helpers to get pointers to values of built-in types.
Go
192
star
2

cgo-by-example

NOT UPDATED FOR YEARS. How to mix C and Go with cgo
Go
131
star
3

zabbix

Archived, see https://github.com/AlekSi/zabbix/issues/24
Go
82
star
4

nut

Nut is a tool to manage versioned Go source code packages, called "nuts".
Go
49
star
5

breakpad-qt

Cross-platform crash handler based on google-breakpad. NOT MAINTAINED! See this fork:
C++
32
star
6

zabbix-sender

Go package providing interface to push data to Zabbix server's trapper items.
Go
26
star
7

gocoverutil

Go
25
star
8

gomruby

DEPRECATED. Embeds mruby (mini Ruby) VM into Go.
Go
23
star
9

golang-tip

Daily builds of active Go development branches
Go
18
star
10

reflector

Go package extending standard package reflect with useful utilities.
Go
17
star
11

alice

Alice is a Go package providing helpers for developing skills for Alice virtual assistant via Yandex.Dialogs platform.
Go
15
star
12

applehealth

Go module for accessing Apple Health exported data.
Go
15
star
13

gonuts.io

Central repository for versioned Go source code packages, called "nuts".
Go
13
star
14

mysqlx

MySQL driver for Go's (golang) database/sql package and MySQL X Protocol
Go
12
star
15

google-breakpad-mirror

Unofficial automated mirror of Google Breakpad's Subversion repository, trunk only
C++
9
star
16

yubikey

Go code for working with Yubico keys.
Go
8
star
17

LetsGo

Slide deck for a talk "Let's Go, or introduction to Go" (in Russian)
Go
8
star
18

telesock

Go
7
star
19

guppy-pe

Unofficial mirror of https://guppy-pe.svn.sourceforge.net/svnroot/guppy-pe
Python
7
star
20

loggerglue

Syslog protocol (rfc5424 and rfc5425) utilities, with support for structured data – mirror
Python
6
star
21

docker-ps-bitbar

BitBar plugin that displays statuses of local Docker containers
Go
6
star
22

rtm

Go client for Remember The Milk API v2
Go
5
star
23

codespeed-client

Library and command-line tool to push benchmark data to CodeSpeed
Python
5
star
24

gocovermerge

MOVED TO https://github.com/AlekSi/gocoverutil
Go
4
star
25

generics-vs-interfaces

Go
4
star
26

redmine_code_review

NOT MAINTAINED. Automated mirror + my patches; see wiki for details
Ruby
4
star
27

qtslint

C++/Qt wrapper for Douglas Crockford's JSLint.
JavaScript
3
star
28

xmltv

Go
3
star
29

pushover

Push notifications to your phone or browser via Pushover.
Go
3
star
30

redmine_hudson

Automated mirror + my patches; see wiki for details
Ruby
3
star
31

benchmarking-py

ABANDONED
Python
3
star
32

fairy

Go
2
star
33

twisted-benchmarks

Hand-made git mirror of Twisted's benchmarks
Python
2
star
34

pmm-workshop

2
star
35

python-git-hooks

Python
2
star
36

valgrind-suppressions

Automatic generator of suppression files for concrete system.
C++
2
star
37

ctypes_configure

Python
2
star
38

Jabbin

Unofficial automated mirror of Jabbin's Subversion repository, joimtrunk only
C++
2
star
39

gogen

Go
1
star
40

mongo_analyzer

JavaScript
1
star
41

pivotal-tracker-story-board

Third-party mirror of pivotal-tracker-story-board (http://codaset.com/vizio/pivotal-tracker-story-board)
JavaScript
1
star
42

test_db

Various example databases.
PLpgSQL
1
star
43

vscode-delve-example

Go
1
star
44

go-words

Generates Go words for VS Code Spell Checker.
Go
1
star
45

stachka-2017

Go
1
star
46

go-1.10-release-party

1
star
47

grpc-gateway-swagger-issue

Makefile
1
star
48

graytoad

Graylog2 + Hoptoad
Ruby
1
star