Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not start Karma server .. #22

Open
kiranchowdhury opened this issue Jul 22, 2016 · 0 comments
Open

Can not start Karma server .. #22

kiranchowdhury opened this issue Jul 22, 2016 · 0 comments

Comments

@kiranchowdhury
Copy link

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/'
    }
});

};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant