diff --git a/Gruntfile.js b/Gruntfile.js index b9a9a2c..28f8c18 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -4,10 +4,15 @@ module.exports = function (grunt) { grunt.initConfig({ karma: { - unit: { + phantom: { configFile: "karma.conf.js", singleRun: true, - browsers: ["PhantomJS", "Chrome"] + browsers: ["PhantomJS"] + }, + chrome: { + configFile: "karma.conf.js", + singleRun: true, + browsers: ["Chrome"] }, watch: { configFile: "karma.conf.js", @@ -28,5 +33,6 @@ module.exports = function (grunt) { grunt.registerTask('default', ['typescript']); - grunt.registerTask('test', ['typescript', 'karma:unit']) + grunt.registerTask('test', ['typescript', 'karma:phantom', 'karma:chrome']); + grunt.registerTask('test:travis', ['typescript', 'karma:phantom']); }; \ No newline at end of file diff --git a/package.json b/package.json index 0479a6e..f9eb99d 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,6 @@ }, "license": "MIT", "scripts": { - "test": "./node_modules/.bin/grunt test" + "test": "./node_modules/.bin/grunt test:travis" } }