Command-line tool to highlight code coverage in the terminal.
Go to file
Adrien Marquès 965d445aa9 add examples to usage 2019-11-23 01:06:32 +01:00
coverage create coverage +reader 2019-11-23 01:06:28 +01:00
.gitignore update license and gitignore 2019-11-23 01:06:19 +01:00
LICENSE update license and gitignore 2019-11-23 01:06:19 +01:00
README.md update usage using flags 2019-11-23 01:06:26 +01:00
go.mod add go module support 2019-11-23 01:06:26 +01:00
print.go fix print colors 2019-11-23 01:06:28 +01:00
usage.go add examples to usage 2019-11-23 01:06:32 +01:00

README.md

cliverage

go_package: git.xdrm.io/go/cliverage
author: xdrm-brackets

Command-line tool to highlight code coverage in the terminal.

Requirements

You need a recent system with golang installed.

It has not been tested under go 1.12.4

Installation

You need to fetch and install the package with :

go get git.xdrm.io/go/cliverage

It should create the executable cliverage into the folder $GOPATH/bin (or $GOBIN if set).

Usage

In order for the cliverage tool to run successfully, you need :

  • a path to your code's repository
  • the coverage file path (see this documentation)

Command usage :

cliverage -d <code-path> -c <cover-file> [-f <file-path>]

Arguments :

  • <code-path> - path to where your code lives
  • cover-file - path to the coverage file
  • -f <file-path> - path to a single file. You can use go package wildcards : ./... prints every file, ./a/b/... prints every file located into ./a/b.