Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 701 Bytes

README.md

File metadata and controls

45 lines (30 loc) · 701 Bytes

cover-pretty

This is a simple tool to mimic the output of go tool cover but with a prettier html page. Work in progress.

img

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