Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c2e215f

Browse files
committed
chore: use Karma
1 parent 61f2767 commit c2e215f

9 files changed

+14
-14
lines changed

Gruntfile.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ module.exports = function(grunt) {
4545

4646

4747
test: {
48-
jqlite: 'testacular-jqlite.conf.js',
49-
jquery: 'testacular-jquery.conf.js',
50-
modules: 'testacular-modules.conf.js',
48+
jqlite: 'karma-jqlite.conf.js',
49+
jquery: 'karma-jquery.conf.js',
50+
modules: 'karma-modules.conf.js',
5151
//NOTE run grunt test:e2e instead and it will start a webserver for you
52-
end2end: 'testacular-e2e.conf.js'
52+
end2end: 'karma-e2e.conf.js'
5353
},
5454

5555

5656
autotest: {
57-
jqlite: 'testacular-jqlite.conf.js',
58-
jquery: 'testacular-jquery.conf.js'
57+
jqlite: 'karma-jqlite.conf.js',
58+
jquery: 'karma-jquery.conf.js'
5959
},
6060

6161

angularFiles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ if (exports) {
208208
var files = [];
209209

210210
[].splice.call(arguments, 0).forEach(function(file) {
211-
if (file.match(/testacular/)) {
211+
if (file.match(/karma/)) {
212212
files.push(file);
213213
} else {
214214
angularFiles[file].forEach(function(f) {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

lib/grunt/plugins.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ module.exports = function(grunt) {
5050
});
5151

5252

53-
grunt.registerMultiTask('test', 'Run the unit tests with testacular', function(){
54-
util.startTestacular.call(util, this.data, true, this.async());
53+
grunt.registerMultiTask('test', 'Run the unit tests with Karma', function(){
54+
util.startKarma.call(util, this.data, true, this.async());
5555
});
5656

5757

58-
grunt.registerMultiTask('autotest', 'Run and watch the unit tests with testacular', function(){
59-
util.startTestacular.call(util, this.data, false, this.async());
58+
grunt.registerMultiTask('autotest', 'Run and watch the unit tests with Karma', function(){
59+
util.startKarma.call(util, this.data, false, this.async());
6060
});
6161
};

lib/grunt/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ module.exports = {
3030
},
3131

3232

33-
startTestacular: function(config, singleRun, done){
33+
startKarma: function(config, singleRun, done){
3434
var browsers = grunt.option('browsers');
3535
var reporters = grunt.option('reporters');
3636
var noColor = grunt.option('no-colors');
37-
var p = spawn('node', ['node_modules/testacular/bin/testacular', 'start', config,
37+
var p = spawn('node', ['node_modules/karma/bin/karma', 'start', config,
3838
singleRun ? '--single-run=true' : '',
3939
reporters ? '--reporters=' + reporters : '',
4040
browsers ? '--browsers=' + browsers : '',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"q-fs": "0.1.36",
1313
"qq": "0.3.5",
1414
"shelljs": "0.1.2",
15-
"testacular": "0.5.9",
15+
"karma": "~0.8",
1616
"yaml-js": "0.0.5"
1717
}
1818
}

0 commit comments

Comments
 (0)