Skip to content

📑 Print out Go test coverage as diff

License

Notifications You must be signed in to change notification settings

konradreiche/coverdiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📑 coverdiff

ci codecov

Print your Go test coverage line-by-line in the form of a code diff, highlighting each line. This tool takes inspiration from Go's HTML presentation of test coverage but brings it to the terminal instead.

asciicast

Getting Started

go install github.com/konradreiche/coverdiff@latest

Usage

Usage:
	coverdiff test [packages]
	coverdiff [file]

Flags:
	-h, --help	print help text

Examples:

	coverdiff test ./...

	PAGER=delta coverdiff test

	go test -cover -coverprofile=coverage.out
	cat coverage.out | coverdiff

	go test -cover -coverprofile >(coverdiff)

About

📑 Print out Go test coverage as diff

Resources

License

Stars

Watchers

Forks

Languages