diff --git a/Gruntfile.js b/Gruntfile.js index 4cc9855b..f85b8408 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -532,17 +532,6 @@ module.exports = function (grunt) { } }, - /** - * grunt karma:unit / grunt karma:integration - * - * This task runs the unit or integration suite on the compiled code. - */ - karma: { - unit: { - configFile: './karma-unit.conf.js' - } - }, - /** * grunt shell:xvfbStart / grunt shell:xvfbStop * @@ -656,22 +645,6 @@ module.exports = function (grunt) { 'watch' ]); - /** - * grunt test:unit - * - * This command will create a clean build against which our unit - * tests will be run. For more information, please see - * karma-unit.conf.js - */ - grunt.registerTask('test:unit', [ - 'clean', - 'bower:install', - 'compile', - 'useminPrepare', - 'concat', - 'karma:unit' - ]); - /** * grunt test:integration * @@ -692,7 +665,7 @@ module.exports = function (grunt) { * * This command will create a clean build against which our functional * tests will be run. For more information, please see - * karma-functional.conf.js + * protractor.conf.js */ grunt.registerTask('test:functional', [ 'clean', diff --git a/package.json b/package.json index ee3a4f5b..c27b881c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "clean": "./node_modules/.bin/grunt clean", "lint": "eslint ./", - "test-unit": "./node_modules/.bin/grunt test:unit", + "pretest-unit": "grunt build", + "test-unit": "karma start ./karma-unit.conf.js", "test-functional": "./node_modules/.bin/grunt test:functional", "test-integration": "./node_modules/.bin/grunt test:integration", "draft": "./node_modules/.bin/grunt build:draft", @@ -45,7 +46,6 @@ "grunt-env": "0.4.1", "grunt-gitinfo": "^0.1.7", "grunt-html2js": "0.2.9", - "grunt-karma": "0.12.2", "grunt-open": "0.2.3", "grunt-protractor-runner": "1.1.4", "grunt-shell": "1.1.1",