Skip to content

crazytyper/gotestcover

 
 

Repository files navigation

Go test cover with multiple packages support

A fork of https://github.com/pierrre/gotestcover that integrates https://github.com/wadey/gocovmerge.

Features

  • Coverage profile with multiple packages (go test doesn't support that)
  • Merges coverage profiles
  • Show total coverages and statements
  • Show a hot spot report of the 10 packages containing the most uncovered statements

Install

go get github.com/crazytyper/gotestcover

Usage

gotestcover -coverprofile=cover.out mypackage
go tool cover -html=cover.out -o=cover.html

Run on multiple package with:

  • package1 package2
  • package/...

Some go test / build flags are available.

About

Go test cover with multiple packages support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.0%
  • Makefile 1.0%