gocov-html

command module
v0.0.0-...-b10f6c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2016 License: MIT Imports: 5 Imported by: 0

README

Gocov HTML export
=================

This is a simple helper tool for generating HTML output from `axw/gocov`_.

.. _axw/gocov: https://github.com/axw/gocov

Here is a screenshot:

.. image:: https://github.com/duynguyenhoang/gocov-html/blob/master/gocovh-html.png
   :scale: 40 %
   :alt: HTML coverage report screenshot
   :align: center


Installation
------------

Just type the following to install the program and its dependencies::

    $ go get github.com/axw/gocov/gocov
    $ go get -u github.com/duynguyenhoang/gocov-html

Usage
-----

`gocov-html` can read a JSON file or read from standard input::

    $ gocov test net/http | gocov-html > http.html

or::

    $ gocov test net/http > http.json
    $ gocov-html http.json > http.html

The generated HTML content comes along with a default embedded CSS. Use the `-s` 
flag to use a custom stylesheet::

    $ gocov test net/http | gocov-html -s mystyle.css > http.html

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL