According to this post (and the general internet) if I want to run a Karma test without these kinds of code coverage commands...
__cov_9C0014nbzu2SxN3FICah6Q.f['35']++;
__cov_9C0014nbzu2SxN3FICah6Q.s['138']++;
...I simply need to set the --debug
option in the terminal like so:
$ karma start karma.conf.js --browsers=Chrome --single-run=false --debug
However, when running your Karma tests via a Gulp task the documentation seems to be missing. I'm using a simply karma.start
config object below. I've tried setting the debug
property to either true
or the strign '--debug'
, however neither seems to have an effect (although the tests do run/the runner doesn't crash).
karma.start({
configFile: __dirname + '/karma.conf.js',
exclude: excludeFiles,
singleRun: !!singleRun,
debug: '--debug'
}, karmaCompleted);
Any ideas how to set the debug option when running your Karma tests from a Gulp task?