You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to Karma-Brakets.. I installed karma-cli globally .. but when I try to start the karma server .. its giving me following error -
×
Sorry :( There's been a problem (code: START_KARMA)
There was an error while starting karma server. Check you have the path to karma executable configured correctly and that karma config file is in the root of the current project.
This is my karma.conf.js ..
module.exports = function (config) {
'use strict';
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: [
'sportstore/bower_components/angular/angular.js',
'sportstore/bower_components/angular-route/angular-route.js',
'sportstore/bower_components/angular-mocks/angular-mocks.js',
'sportstore/bower_components/angular-ui-grid/ui-grid.min.js',
'sportstore/bower_components/ng-dialog/js/ngDialog.min.js',
'sportstore/modules/*.js',
'sportstore/directives/*.js',
'sportstore/controllers/*.js',
'sportstore/services/*.js',
'sportstore/filters/*.js',
'sportstore/tests/*.js'
],
// list of files to exclude
exclude: [
],
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
// source files, that you wanna generate coverage for
// do not include tests or libraries
// (these files will be instrumented by Istanbul)
'sportstore/controllers/*.js': ['coverage'],
'sportstore/directives/*.js': ['coverage'],
'sportstore/Services/*.js': ['coverage'],
'sportstore/filters/*.js': ['coverage']
},
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress', 'brackets', 'coverage'],
// web server port
port: 9876,
// enable / disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome'],
// Which plugins to enable
plugins: [
'karma-phantomjs-launcher',
'karma-jasmine'
],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,
// optionally, configure the reporter
coverageReporter: {
type: 'html',
dir: 'coverage-karma/'
}
});
};
The text was updated successfully, but these errors were encountered:
I am new to Karma-Brakets.. I installed karma-cli globally .. but when I try to start the karma server .. its giving me following error -
×
Sorry :( There's been a problem (code: START_KARMA)
There was an error while starting karma server. Check you have the path to karma executable configured correctly and that karma config file is in the root of the current project.
This is my karma.conf.js ..
module.exports = function (config) {
'use strict';
};
The text was updated successfully, but these errors were encountered: