@jacksontian/gocov

1.0.1 • Public • Published

gocov

A better test coverage reporter than go tool cover. The project inspired by Istanbul.

Installation

npm install @jacksontian/gocov -g

Usage

Run go test first:

go test -race -coverprofile=coverage.txt -covermode=atomic ...

The coverage data file will be generated at coverage.txt.

gocov coverage.txt

Open the coverage/index.html.

Features

  • Prettier HTML reporter.
  • Sort by filename, branch coverage rate, line coverage rate.
  • Group by dictionary.

Demo

License

The BSD-3 License

/@jacksontian/gocov/

    Package Sidebar

    Install

    npm i @jacksontian/gocov

    Weekly Downloads

    3

    Version

    1.0.1

    License

    BSD-3-Clause

    Unpacked Size

    53.2 kB

    Total Files

    11

    Last publish

    Collaborators

    • jacksontian