Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
/ coverage-to-readme Public archive

一个简单的工具脚本,用于将istanbul生成的coverage信息添加到项目的README.md

Notifications You must be signed in to change notification settings

bencode/coverage-to-readme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

coverage-to-readme

一个简单的工具脚本,用于将istanbul生成的coverage信息添加到项目的README.md

使用方法

  1. 安装
npm install --save-dev coverage-to-readme

2. 在README.md需要添加单元测试覆盖率的地方打个标

\```coverage    #前面的\不要哦
\```
  1. 运行istanbul cover生成信息文件

  2. 运行命令

node node_modules/coverage-to-readme

参数

--report

指定不同格式,如 text, text-summary, 默认为text-summary

node node_modules/coverage-to-readme --report text

--root

指定不同的coverage信息目录,会传递给istanbul report --root

--output

默认的ouput为README.md,可以修改成需要的文件

About

一个简单的工具脚本,用于将istanbul生成的coverage信息添加到项目的README.md

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published