Skip to content

nehemming/gocovdedup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages