WARN [preprocess]: Can not load "coverage", it is not registered!
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
"../../../../src/test/webapp/js/libs/angular.js",
"../../../../src/test/webapp/js/libs/angular-mocks.js",
"../../../../src/main/webapp/js/*.js",
"../../../../src/test/webapp/js/*.js"
],
exclude: [
],
preprocessors: {
"../../../../src/main/webapp/js/*.js": ['coverage']
},
coverageReporter: {
type: "lcov",
dir: "target/"
},
reporters: ['dots', 'junit', 'coverage'],
port: 9876,
colors: false,
logLevel: config.LOG_DEBUG,
autoWatch: false,
browsers: ['PhantomJS'],
captureTimeout: 60000,
singleRun: true
});
};
cmd /C karma start ...\angularjsexp\src\test\webapp\js\karma.conf.js --browsers PhantomJS --reporters dots,coverage --single-run --no-auto-watch --colors false
I'm working through a POC with Karma, Jasmine, AngularJS, and Maven. I'm on a Win7 box with Cygwin installed.
I've done all of my npm installs in a cmd window, but I'm running my Maven build in a Bash shell in Cygwin.
The unit test is executing and succeeding, but when I tried to implement coverage, it says:WARN [preprocess]: Can not load "coverage", it is not registered!
plugins:[
'karma-jasmine',
'karma-coverage',
'karma-phantomjs-launcher'
],
--
You received this message because you are subscribed to the Google Groups "karma-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to karma-users...@googlegroups.com.
To post to this group, send email to karma...@googlegroups.com.
Visit this group at http://groups.google.com/group/karma-users.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "karma-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/karma-users/7SqpqBC3oms/unsubscribe.
To unsubscribe from this group and all its topics, send an email to karma-users...@googlegroups.com.
To post to this group, send email to karma...@googlegroups.com.
Visit this group at http://groups.google.com/group/karma-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/karma-users/CAB-zMXmpVh3s%3DzN3z1XTCMC6AK9rmVD6P-%2BFVcYSre_DYPx5oA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/karma-users/CAA5t8VphbsnoZ7AScQzEu4LkBKCDxFj4aSVkG-oDZx4g1RywNg%40mail.gmail.com.