From 7ecb4372a581e3e53da3471d52e51f489db4c180 Mon Sep 17 00:00:00 2001 From: jlukic Date: Mon, 14 Oct 2013 13:07:31 -0400 Subject: [PATCH] Updates gruntfile test runner, adds console clean after tests --- Gruntfile.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 0d26c4957..e2a256b37 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -123,9 +123,10 @@ module.exports = function(grunt) { }, scripts: { files: [ + 'test/**/*.js', 'src/**/*.js' ], - tasks : ['karma:test:run'] + tasks : ['clear', 'karma:test:run'] }, src: { files: [ @@ -141,13 +142,19 @@ module.exports = function(grunt) { Test *******************************/ + clear: { + terminal: { + + } + }, + karma: { test: { - configFile : 'test/karma.conf.js', + configFile : 'karma.conf.js', background : true }, travis: { - configFile : 'test/karma.conf.js', + configFile : 'karma.conf.js', singleRun : true } }, @@ -528,6 +535,7 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-docco-multi'); grunt.loadNpmTasks('grunt-cssjanus'); + grunt.loadNpmTasks('grunt-clear'); grunt.loadNpmTasks('grunt-karma'); grunt.initConfig(config);