Closed hhelwich closed 10 years ago
Karma will load plugins local to it by default. Since the version of karma
that gulp-karma
was using was inside of gulp-karma/node_modules
, karma-coverage
was not available for discovery.
I made karma
a peerDependency
of gulp-karma
, which causes it to be installed in the project itself (not it it's own node_modules
folder), allowing automatic discovery of plugins.
Closed by a1d34ece9738afcc152c73b2a0d6642f711f21b5. Please try with gulp-karma
@0.0.2, your issue should be fixed.
In other cases where you get this error, try specifying the plugin in the plugins array (see Karma docs on plugins):
plugins: [
'karma-coverage',
'karma-jasmine',
'karma-chrome-launcher',
'karma-firefox-launcher'
]
:+1:
I get the following warning:
I have the following block in my
karma.conf.js
file:In my
package.json
i have the dependency"karma-coverage": "~0.1.4"
which solves the warning if i run karma directly, but does seem to have no effect on gulp-karma.