cover-pretty
This is a simple tool to mimic the output of go tool cover
but with a prettier html page. Work in progress.
Installation
go install github.com/skelouse/cover-pretty@latest
Usage
go test -v ./... -coverprofile cover.out -coverpkg ./...
cover-pretty -html || -func
Example
go run .
cover-pretty will walk up the directory tree until it finds a cover.out
file. Which so happens to be in the _example
directory.
Build
cd _example
go test -v ./... -coverprofile cover.out -coverpkg ./...
cd ..
go run .
Page Development
cd go/cover/react-coverage
npm i
npm run dev