File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -576,7 +576,11 @@ module.exports = function (grunt) {
576
576
karma : {
577
577
unit : {
578
578
configFile : 'test/karma.conf.js' ,
579
- singleRun : true
579
+ singleRun : true ,
580
+ // default in karma.conf.js is Firefox, however, Chrome has much better
581
+ // error messages when writing tests. Call with chrome like this:
582
+ // grunt test --browsers=Chrome
583
+ browsers : grunt . option ( 'browsers' ) ? [ grunt . option ( 'browsers' ) ] : [ 'Firefox' ]
580
584
}
581
585
} ,
582
586
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,9 @@ module.exports = function(config) {
79
79
// - Safari (only Mac)
80
80
// - PhantomJS
81
81
// - IE (only Windows)
82
- browsers : [ 'Firefox' ] ,
83
- // Which plugins to enable
84
82
plugins : [
85
83
'karma-firefox-launcher' ,
84
+ 'karma-chrome-launcher' ,
86
85
'karma-ng-html2js-preprocessor' ,
87
86
'karma-jasmine' ,
88
87
'karma-coverage'
You can’t perform that action at this time.
0 commit comments