coverage
This commit is contained in:
parent
bf7061a7df
commit
70a78b282a
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
build
|
||||
cov
|
||||
*.out
|
||||
*.o
|
||||
*.s
|
21
README.md
21
README.md
@ -188,3 +188,24 @@ $ sh boot.sh
|
||||
- `ungetc` 和 `stdin`(理论上非必须,可以在本语言中手动模拟)
|
||||
- `fprintf` 和 `stderr`(理论上非必须,仅用于输出错误信息)
|
||||
|
||||
## 测试
|
||||
|
||||
### 单元测试
|
||||
|
||||
TODO
|
||||
|
||||
### 覆盖率
|
||||
|
||||
安装如下可视化工具
|
||||
|
||||
```sh
|
||||
$ pip install gcovr
|
||||
```
|
||||
|
||||
然后
|
||||
|
||||
```sh
|
||||
$ sh cov.sh
|
||||
```
|
||||
|
||||
就会在 cov 文件夹下生成自举的 coverage 数据
|
||||
|
Loading…
Reference in New Issue
Block a user