gocovdedup

command module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 7 Imported by: 0

README

gocovdedup - Go Cover Deduplicate

Small utility application to merge and deduplicate go test cover files.

This program deduplicates over lapping profiles by unioning the line coverage.

TThe purpose of this tool is to get accurate line coverage. Statement coverage uses the maximum of overlapping lines value from each profile, and as such may not be strictly accurate.

Install

go install github.com/nehemming/gocovdedup@latest

Usage

The tool can either be used to pipe profiles to via stdin or be supplied paths to each coverage file to include. The deduplicated and merged output is always sent to stdout.

Piped
cat files | gocovdedup - > cover.out
Args
gocovdedup package_one.out package_tow.out commontests.out > cover.out
Ignoring packages and files

Files and packages can be excluded by including a .coverognore file in the working directory. This file works very similarly to .gitignore files.

github.com/repo/alternate/* Causes te filter to remove all files immediately under github.com/repo/alternate

**/proto/** Excludes all packages with proto in their path.

Documentation

Overview

Package main is the main entry point for the program.

Jump to

Keyboard shortcuts

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