Go tool cover terminal display Tools-gocover-cui

Source: Internet
Author: User
Tags git clone

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!!!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.