gotestcover

command module
v0.0.0-...-72d9954 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2016 License: MIT Imports: 21 Imported by: 0

README

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.

Documentation

Overview

Package gotestcover provides multiple packages support for Go test cover.

Merges multiple coverage profiles into one.

https://github.com/wadey/gocovmerge Copyright (c) 2015, Wade Simmons All rights reserved.

Directories

Path Synopsis
ignore is a library which returns a new ignorer object which can test against various paths.
ignore is a library which returns a new ignorer object which can test against various paths.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL