gocov

Coverage testing tool for The Go Programming Language

  • 所有者: axw/gocov
  • 平台:
  • 許可證: Other
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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.

主要指標

概覽
名稱與所有者axw/gocov
主編程語言Go
編程語言Go (語言數: 1)
平台
許可證Other
所有者活动
創建於2012-06-29 12:10:43
推送於2024-10-11 09:25:28
最后一次提交2024-10-11 17:24:52
發布數4
最新版本名稱v1.2.1 (發布於 )
第一版名稱v1.0.0 (發布於 )
用户参与
星數882
關注者數19
派生數99
提交數146
已啟用問題?
問題數67
打開的問題數12
拉請求數34
打開的拉請求數0
關閉的拉請求數8
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?