Original intention
My work environment is converted from a full-local environment to a local environment (coding) + Docker (test, run), and when I am in Docker test, I cannot use goconery WEBUI like local test.
Of course, you can also go tool cover -html=c.out -o coverage.html
open this HTML locally in Docker.
In case your system does not have a desktop system, then this fits you well.
Installation
Go get
go get github.com/Mapana/gocover-cui
Git
git clone https://github.com/Mapana/gocover-cui.gitcd gocover-cuigo install
Operation Manual
- There is a separate branch key-help, with tips added at the top
- Manual copywriting on the github wiki
Let's try a wave.
When using, pay attention to whether it is well equipped $ Gopath/bin environment variable, otherwise it needs to be used in front of the command to add$GOPATH/bin/
- Example_ls = 87.5%
- EXAMPLE_HS = 100%
cd gocover-cuigocover-cui -cui=example/example_ls.out -log=example/example_ls.log # Can run -cui or -log separatelygocover-cui -cui=example/example_hs.out -log=example/example_hs.log
Support, please.
Project Address Gocover-cui, seeking star, fork
I wonder why the project is so vague, the local view is perfect, the original upload GitHub became this
If you have any tools please impart to under, thanks Thank you!!!