内容简介:我的工作环境从全本地环境开发转换为本地环境(coding) + docker(test、run),当我在docker test的时候,我无法像本地test一样,可以用Goconery WEBUI。当然,也可以在docker里使用时注意是否配好$GOPATH/bin的环境变量,否则需要使用时在命令前面加
初衷
我的工作环境从全本地环境开发转换为本地环境(coding) + docker(test、run),当我在docker test的时候,我无法像本地test一样,可以用Goconery WEBUI。
当然,也可以在 docker 里 go tool cover -html=c.out -o coverage.html
,然后本地打开这个html
万一,你的系统无桌面系统,那么这个很适合你
安装
go get
go get github.com/Mapana/gocover-cui
git
git clone https://github.com/Mapana/gocover-cui.git cd gocover-cui go install
操作手册
来试一波
使用时注意是否配好$GOPATH/bin的环境变量,否则需要使用时在命令前面加 $GOPATH/bin/
- example_ls = 87.5%
- example_hs = 100%
cd gocover-cui gocover-cui -cui=example/example_ls.out -log=example/example_ls.log # Can run -cui or -log separately gocover-cui -cui=example/example_hs.out -log=example/example_hs.log
支持一下呗
项目地址 gocover-cui ,求star,求fork
我很疑惑项目中的截图为何如此模糊,本地查看完美,原图上传github就成了这样
大家如果有什么 工具 请传授给在下,感谢感谢!!!
以上所述就是小编给大家介绍的《go tool cover 终端显示工具 - gocover-cui》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Chinese Authoritarianism in the Information Age
Routledge / 2018-2-13 / GBP 115.00
This book examines information and public opinion control by the authoritarian state in response to popular access to information and upgraded political communication channels among the citizens in co......一起来看看 《Chinese Authoritarianism in the Information Age》 这本书的介绍吧!