- npx jest --init 生成配置文件
- package.json添加执行命令
"scripts": {
"test": "jest --coverage"
},
可以打开这个HTML文件再浏览器查看
"scripts": {
"test": "jest --coverage"
},
可以打开这个HTML文件再浏览器查看
本文为霍格沃兹测试学院优秀学员关于后端和 App 端手工测试覆盖率的学习笔记。一、前言代码测试覆盖率工具流行了这么多年,已经有很多成熟方案比如 Jacoco,我司近一段时间开始了这方面的摸索,很荣幸这个任务到了我的手里,于是乎就开始踩坑之旅。之前已经搞定了 Java 后端的覆盖率统计,由于我们没有 UT,毫无疑问使用的还是 On-the-fly 模式,最近几天开始了 App
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M