Golang coverage report was official supported by go test -coverprofile.
This tool makes it available for integration test of long-run project, e.g. a web server.
Most code is copied from golang cmd/cover and testing pakcage.
Support golang 1.11+.
Demo
Run the following script
# prepare temp directory
mkdir /tmp/gopath
cd /tmp/gopath
# go get
GOPATH=/tmp/gopath go get github.com/ikarishinjieva/golang-live-coverage-report/cmd/golang-live-coverage-report
# build demo
cd /tmp/gopath/src/github.com/ikarishinjieva/golang-live-coverage-report/examples/
GOPATH=/tmp/gopath PATH=$GOPATH/bin:$PATH make
# start demo server
./demo