Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 952 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 952 Bytes

📑 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)