1
我正在使用nyc來生成代碼覆蓋率報告。我爲我的測試使用不同的級別。我如何合併不同級別的報告?如何設置不同測試級別的測試代碼覆蓋率?
有我我的package.json
"scripts": {
"test": "npm run test:unit && npm run test:component",
"test:component": "nyc mocha ./test/component",
"test:unit": "nyc mocha ./test/unit"
},
"nyc": {
"extension": [
".ts"
],
"cache": true,
"reporter": [
"lcov",
"text-summary"
]
}
您可以使用託管解決方案通過Codecov標誌完成此操作:http://docs.codecov.io/docs/flags讓我知道您是否有疑問。 –