Skip to content

Utility for converting Go coverage profiles into HTML pages

License

Notifications You must be signed in to change notification settings

essentialkaos/htmlcov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

GoReportCard Codacy badge GitHub Actions CI Status GitHub Actions CodeQL Status

InstallationCommand-line completionMan documentationUsageCI StatusContributingLicense


htmlcov is an utility for converting Go coverage profiles into HTML pages. It's just better version of go tool cover -html=cover.out -o coverage.html command.

Screenshot

Screenshot

Installation

From source

To build the htmlcov from scratch, make sure you have a working Go 1.22+ workspace (instructions), then:

go install github.com/essentialkaos/htmlcov@latest

Prebuilt binaries

You can download prebuilt binaries for Linux and macOS from EK Apps Repository:

bash <(curl -fsSL https://apps.kaos.st/get) htmlcov

Command-line completion

You can generate completion for bash, zsh or fish shell.

Bash:

sudo htmlcov --completion=bash 1> /etc/bash_completion.d/htmlcov

ZSH:

sudo htmlcov --completion=zsh 1> /usr/share/zsh/site-functions/htmlcov

Fish:

sudo htmlcov --completion=fish 1> /usr/share/fish/vendor_completions.d/htmlcov.fish

Man documentation

You can generate man page using next command:

htmlcov --generate-man | sudo gzip > /usr/share/man/man1/htmlcov.1.gz

Usage

CI Status

Branch Status
master CI
develop CI

Contributing

Before contributing to this project please read our Contributing Guidelines.

License

Apache License, Version 2.0