Unable to run Coverage with Karma
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to run coverage with karma, and I get the warning: WARN [preprocess]: Can not load "coverage", it is not registered! I thought I installed coverage when I ran 'npm install -g karma-coverage --save-dev' Here's my config file: module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '', frameworks: ['jasmine'], // list of files / patterns to load in the browser files: [ bunch of files.. ], // list of files to exclude exclude: [], // use dots reporter, as travis terminal