skelouse / cover-pretty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:Go 61.2%Language:HTML 29.4%Language:TypeScript 8.4%Language:CSS 1.0%