Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Mapana/gocover-cui
Imitation go tool cover -html for display terminal
https://github.com/Mapana/gocover-cui
cover coverui go gocover golang
Last synced: 2 months ago
JSON representation
Imitation go tool cover -html for display terminal
- Host: GitHub
- URL: https://github.com/Mapana/gocover-cui
- Owner: Mapana
- Created: 2018-08-24T10:32:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-05T03:49:39.000Z (over 6 years ago)
- Last Synced: 2024-08-03T23:29:47.148Z (6 months ago)
- Topics: cover, coverui, go, gocover, golang
- Language: Go
- Size: 4.89 MB
- Stars: 14
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README-ZH.md
Awesome Lists containing this project
- awesome-golang-repositories - gocover-cui - html for display terminal (Repositories)
README
# gocover-cui
参考`go tool cover -html=c.out -o coverage.html `将结果显示在终端
```
gocover-cui -cui c.out
```## 须知
**终端主题或bash颜色将影响最终的`gocover-cui`显示颜色**## 安装
#### go get
``` bash
go get github.com/Mapana/gocover-cui
```#### git
``` bash
git clone https://github.com/Mapana/gocover-cui.git
cd gocover-cui
go install
```## 按键帮助
这里提供了分支和手册
- [branch](https://github.com/Mapana/gocover-cui/tree/key-help)
- [manuals](https://github.com/Mapana/gocover-cui/wiki)## 示例
``` bash
cd $GOPATH/src/github.com/Mapana/gocover-cui
gocover-cui -cui=example/example_ls.out -log=example/example_ls.log # 可以单独运行 -cui 或 -log
gocover-cui -cui=example/example_hs.out -log=example/example_hs.log
```#### 当焦点处于`Cover Files`
![image](https://github.com/Mapana/public/blob/master/gocover-cui-1.png)#### 展开`Cover Files`选项
![image](https://github.com/Mapana/public/blob/master/gocover-cui-2.png)#### 当焦点处于`Data View`
![image](https://github.com/Mapana/public/blob/master/gocover-cui-3.png)## 计划
- [x] 支持log显示
- [x] 增加按键帮助