Browse Source

update karma testing

Robin Herbots 10 years ago
parent
commit
696c8d5cd0
3 changed files with 4 additions and 3 deletions
  1. 2 2
      Gruntfile.js
  2. 1 1
      karma.conf.js
  3. 1 0
      package.json

+ 2 - 2
Gruntfile.js

@@ -96,7 +96,7 @@ module.exports = function(grunt) {
 
 	// Project configuration.
 	grunt.initConfig({
-		pkg: grunt.file.readJSON('package.json'),
+		pkg: grunt.file.readJSON("package.json"),
 		uglify: createUglifyConfig("js"),
 		clean: ["dist"],
 		karma: {
@@ -106,7 +106,7 @@ module.exports = function(grunt) {
 			unit: {
 				runnerPort: 9999,
 				singleRun: true,
-				// browsers: ['PhantomJS'], // The tests fail...
+				browsers: ["Chrome"], //will later add extra test targets
 				logLevel: 'ERROR'
 			}
 		},

+ 1 - 1
karma.conf.js

@@ -58,7 +58,7 @@ module.exports = function (config) {
 
 		// start these browsers
 		// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
-		browsers: ['PhantomJS'],
+		browsers: ["PhantomJS", "Chrome", "Firefox"],
 
 
 		// Continuous Integration mode

+ 1 - 0
package.json

@@ -53,6 +53,7 @@
     "grunt-shell": "^1.1.2",
     "karma": "^0.13.3",
     "karma-chrome-launcher": "^0.2.0",
+    "karma-firefox-launcher": "^0.1.6",
     "karma-phantomjs-launcher": "^0.2.0",
     "karma-qunit": "^0.1.5",
     "load-grunt-tasks": "^3.2.0",