我正在嘗試將代碼覆蓋率記者集成到我的業力測試中。噶瑪覆蓋伊斯坦布爾不會創建文件夾
我成立了我的配置如下更改:
coverageIstanbulReporter: {
reports: ['html', 'lcovonly', 'text-summary'],
// base output directory. If you include %browser% in the path it will be replaced with the karma browser name
dir: path.join(__dirname, 'coverage'),
// if using webpack and pre-loaders, work around webpack breaking the source path
fixWebpackSourcePaths: true,
},
reporters: config.coverage ? ['kjhtml', 'dots', 'coverage-istanbul'] : ['kjhtml', 'dots'],
但unfortnetly,它不會創建一個coverage
文件夾。
這裏是我的full karma.config.js
我在做什麼錯在這裏?請注意,我打電話給karma start ./karma.conf.js --coverage
,甚至在沒有配置覆蓋參數的情況下檢查。
你可以看到鍍鉻控制檯測試結果? – Xlee
@Xlee是的,我可以在瀏覽器中看到測試報告,但沒有覆蓋 – Amit