File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 41
41
"jasmine-spec-reporter" : " 1.1.2" ,
42
42
"jshint-stylish" : " 0.2.0" ,
43
43
"karma" : " 0.12.23" ,
44
+ "karma-chrome-launcher" : " ^2.0.0" ,
44
45
"karma-coverage" : " 0.2.6" ,
45
46
"karma-firefox-launcher" : " ^1.0.0" ,
46
47
"karma-jasmine" : " 0.1.5" ,
Original file line number Diff line number Diff line change @@ -79,10 +79,15 @@ module.exports = function(config) {
79
79
// - Safari (only Mac)
80
80
// - PhantomJS
81
81
// - IE (only Windows)
82
- browsers : [ 'Firefox' ] ,
82
+ // default in karma.conf.js is Firefox, however, Chrome has much better
83
+ // error messages when writing tests. Call with chrome like this:
84
+ // grunt test --browsers Chrome
85
+ //browsers: grunt.option('browsers') ? [grunt.option('browsers')] : ['Firefox'],
86
+ browsers : process . env . browsers ? [ process . env . browsers ] : [ 'Firefox' ] ,
83
87
// Which plugins to enable
84
88
plugins : [
85
89
'karma-firefox-launcher' ,
90
+ 'karma-chrome-launcher' ,
86
91
'karma-ng-html2js-preprocessor' ,
87
92
'karma-jasmine' ,
88
93
'karma-coverage'
You can’t perform that action at this time.
0 commit comments