我正在尝试将代码覆盖率记者集成到我的业力测试中。噶玛覆盖伊斯坦布尔不会创建文件夹
我成立了我的配置如下更改:
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