This is a simple tool to mimic the output of go tool cover
but with a prettier html page. Work in progress.
go install github.com/skelouse/cover-pretty@latest
go test -v ./... -coverprofile cover.out -coverpkg ./...
cover-pretty -html || -func
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.
cd _example
go test -v ./... -coverprofile cover.out -coverpkg ./...
cd ..
go run .
cd go/cover/react-coverage
npm i
npm run dev