From c2e215fab6ba73e195f8c32701cfb6e88e8e1ebd Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Wed, 20 Mar 2013 18:57:13 -0700 Subject: chore: use Karma --- lib/grunt/plugins.js | 8 ++++---- lib/grunt/utils.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/grunt/plugins.js b/lib/grunt/plugins.js index c67aa545..b423b61f 100644 --- a/lib/grunt/plugins.js +++ b/lib/grunt/plugins.js @@ -50,12 +50,12 @@ module.exports = function(grunt) { }); - grunt.registerMultiTask('test', 'Run the unit tests with testacular', function(){ - util.startTestacular.call(util, this.data, true, this.async()); + grunt.registerMultiTask('test', 'Run the unit tests with Karma', function(){ + util.startKarma.call(util, this.data, true, this.async()); }); - grunt.registerMultiTask('autotest', 'Run and watch the unit tests with testacular', function(){ - util.startTestacular.call(util, this.data, false, this.async()); + grunt.registerMultiTask('autotest', 'Run and watch the unit tests with Karma', function(){ + util.startKarma.call(util, this.data, false, this.async()); }); }; diff --git a/lib/grunt/utils.js b/lib/grunt/utils.js index 80a41f30..abc71816 100644 --- a/lib/grunt/utils.js +++ b/lib/grunt/utils.js @@ -30,11 +30,11 @@ module.exports = { }, - startTestacular: function(config, singleRun, done){ + startKarma: function(config, singleRun, done){ var browsers = grunt.option('browsers'); var reporters = grunt.option('reporters'); var noColor = grunt.option('no-colors'); - var p = spawn('node', ['node_modules/testacular/bin/testacular', 'start', config, + var p = spawn('node', ['node_modules/karma/bin/karma', 'start', config, singleRun ? '--single-run=true' : '', reporters ? '--reporters=' + reporters : '', browsers ? '--browsers=' + browsers : '', -- cgit v1.2.3