Skip to content

Tool to output covered and total lines from go test coverage profile

License

Notifications You must be signed in to change notification settings

yb172/coverage-lines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coverage lines

Simple tool to get covered and total lines which might be useful if you're trying to calculate total coverage for multiple projects, some of which are not written in Go.

Please see example for more context.

Installation

Same as for any other go binary:

go get -u github.com/yb172/coverage-lines

Usage

First run test with -coverprofile option enabled:

go test ./... -coverprofile=cover.out

And then run coverage-lines:

coverage-lines cover.out

It will output two numbers: number of covered statements and total number of statements

About

Tool to output covered and total lines from go test coverage profile

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages