angularjs - How to resolve Error in karma unit testing: Can not load "Chrome"..? -


i getting head around karma unit testing, installed angular app in osx:

# install karma: $ npm install karma --save-dev  # install plugins project needs: $ npm install karma-jasmine karma-chrome-launcher --save-dev 

my karma config generated karma init , contains this:

 plugins: [             'karma-chrome-launcher',             'karma-jasmine'         ], 

however when run karma start get:

 can not load "chrome", not registered!   perhaps missing plugin? 

how can fix this?

this config file:

//jshint strict: false module.exports = function(config) {   config.set({      basepath: './app',      files: [       'bower_components/angular/angular.js',       'bower_components/angular-route/angular-route.js',       'bower_components/angular-mocks/angular-mocks.js',       'components/**/*.js',       'view*/**/*.js'     ],      autowatch: true,      frameworks: ['jasmine'],      browsers: ['chrome'],      plugins: [       'karma-chrome-launcher',       'karma-firefox-launcher',       'karma-jasmine',       'karma-junit-reporter'     ],      junitreporter: {       outputfile: 'test_out/unit.xml',       suite: 'unit'     }    }); }; 


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -