gocov

Coverage testing tool for The Go Programming Language

  • Owner: axw/gocov
  • Platform:
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

gocov

Coverage reporting tool for The Go Programming Language

Build Status

Installation

go get github.com/axw/gocov/gocov

Usage

There are currently four gocov commands: test, convert, report and annotate.

gocov test

Running gocov test [args...] will run go test [args...] with
an implicit -coverprofile added, and then output the result of
gocov convert with the profile.

gocov convert

Running gocov convert <coverprofile> will convert a coverage
profile generated by go tool cover to gocov's JSON interchange
format. For example:

go test -coverprofile=c.out
gocov convert c.out, gocov annotate -

gocov report

Running gocov report <coverage.json> will generate a textual
report from the coverage data output by gocov convert. It is
assumed that the source code has not changed in between.

Output from gocov test is printed to stdout so users can
pipe the output to gocov report to view a summary of the test
coverage, for example: -

gocov test, gocov report

gocov annotate

Running gocov annotate <coverage.json> <package[.receiver].function>
will generate a source listing of the specified function, annotating
it with coverage information, such as which lines have been missed.

GoCovGUI:
A simple GUI wrapper for the gocov coverage analysis tool.

gocov-html:
A simple helper tool for generating HTML output from gocov.

gocov-xml:
A simple helper tool for generating XML output in Cobertura format for CIs like Jenkins and others from gocov.

Main metrics

Overview
Name With Owneraxw/gocov
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:Other
所有者活动
Created At2012-06-29 12:10:43
Pushed At2024-10-11 09:25:28
Last Commit At2024-10-11 17:24:52
Release Count4
Last Release Namev1.2.1 (Posted on )
First Release Namev1.0.0 (Posted on )
用户参与
Stargazers Count880
Watchers Count19
Fork Count99
Commits Count146
Has Issues Enabled
Issues Count67
Issue Open Count12
Pull Requests Count34
Pull Requests Open Count0
Pull Requests Close Count8
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private