【发布时间】:2018-06-03 10:48:51
【问题描述】:
我使用 jest 进行单元测试并使用 detox 进行一些自动化(使用 jest 作为测试运行程序)。这是我在package.json中的设置
"jest": {
"preset": "react-native",
"collectCoverage": true,
"coverageReporters": [
"json",
"html"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/.history/",
"/e2e/"
]
},
"detox": {
"test-runner": "jest",
"runner-config": "e2e/config.json",
"configurations": ...
}
我想查看合并后的代码覆盖率,应该怎么做?
【问题讨论】:
标签: react-native npm detox