diff options
| author | Matias Niemelä | 2013-08-01 16:14:52 -0400 |
|---|---|---|
| committer | Igor Minar | 2013-08-08 23:50:28 -0700 |
| commit | 05b41eedce679a65cf7beac8b19d891721f93323 (patch) | |
| tree | c3c2502152be3a0489d595b4a52ee0caf1e628dc | |
| parent | f80730f497cb1ecb78a814f01df79b69223ad633 (diff) | |
| download | angular.js-05b41eedce679a65cf7beac8b19d891721f93323.tar.bz2 | |
fix(grunt): ensure all dependent tasks are called for all test task
Close #3421
| -rw-r--r-- | Gruntfile.js | 24 | ||||
| -rw-r--r-- | lib/grunt/plugins.js | 2 |
2 files changed, 16 insertions, 10 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 014fb8cd..b79467ca 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -31,11 +31,11 @@ module.exports = function(grunt) { stream: true }, tasks: [ - util.parallelTask('test:docs'), - util.parallelTask('test:modules'), - util.parallelTask('test:jquery'), - util.parallelTask('test:jqlite'), - util.parallelTask('test:e2e') + util.parallelTask('tests:docs'), + util.parallelTask('tests:modules'), + util.parallelTask('tests:jquery'), + util.parallelTask('tests:jqlite'), + util.parallelTask('tests:end2end') ] } }, @@ -80,7 +80,7 @@ module.exports = function(grunt) { }, - test: { + tests: { jqlite: 'karma-jqlite.conf.js', jquery: 'karma-jquery.conf.js', docs: 'karma-docs.conf.js', @@ -94,7 +94,7 @@ module.exports = function(grunt) { jqlite: 'karma-jqlite.conf.js', jquery: 'karma-jquery.conf.js', modules: 'karma-modules.conf.js', - docs: 'karma-docs.conf.js', + docs: 'karma-docs.conf.js' }, @@ -230,10 +230,16 @@ module.exports = function(grunt) { //alias tasks - grunt.registerTask('test:unit', ['test:jqlite', 'test:jquery', 'test:modules']); + grunt.registerTask('test', ['package','test:unit', 'tests:docs', 'test:e2e']); + grunt.registerTask('test:jqlite', ['tests:jqlite']); + grunt.registerTask('test:jquery', ['tests:jquery']); + grunt.registerTask('test:modules', ['tests:modules']); + grunt.registerTask('test:docs', ['package', 'tests:docs']); + grunt.registerTask('test:unit', ['tests:jqlite', 'tests:jquery', 'tests:modules']); + grunt.registerTask('test:e2e', ['connect:testserver', 'tests:end2end']); grunt.registerTask('test:docgen', ['jasmine-node']); + grunt.registerTask('minify', ['bower','clean', 'build', 'minall']); - grunt.registerTask('test:e2e', ['connect:testserver', 'test:end2end']); grunt.registerTask('webserver', ['connect:devserver']); grunt.registerTask('package', ['bower','clean', 'buildall', 'minall', 'collect-errors', 'docs', 'copy', 'write', 'compress']); grunt.registerTask('ci-checks', ['ddescribe-iit', 'merge-conflict']); diff --git a/lib/grunt/plugins.js b/lib/grunt/plugins.js index a17f62cc..33c52abf 100644 --- a/lib/grunt/plugins.js +++ b/lib/grunt/plugins.js @@ -52,7 +52,7 @@ module.exports = function(grunt) { }); - grunt.registerMultiTask('test', 'Run the unit tests with Karma', function(){ + grunt.registerMultiTask('tests', 'Run the unit tests with Karma', function(){ util.startKarma.call(util, this.data, true, this.async()); }); |
