Changeset 26064
- Timestamp:
- 11/09/2013 09:18:23 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r26063 r26064 67 67 src: [] 68 68 }, 69 'qunit-compiled': {69 qunit: { 70 70 src: 'tests/qunit/index.html', 71 71 dest: 'tests/qunit/compiled.html', … … 160 160 files: ['tests/qunit/**/*.html'] 161 161 }, 162 phpunit: { 163 default: { 164 cmd: 'phpunit', 165 args: ['-c', 'phpunit.xml.dist'] 166 }, 167 ajax: { 168 cmd: 'phpunit', 169 args: ['-c', 'phpunit.xml.dist', '--group', 'ajax'] 170 }, 171 multisite: { 172 cmd: 'phpunit', 173 args: ['-c', 'tests/phpunit/multisite.xml'] 174 } 175 }, 162 176 uglify: { 163 177 core: { … … 261 275 262 276 // Testing tasks. 263 grunt.registerTask('test', ['qunit']); 264 grunt.registerTask('test:compiled', ['build', 'clean:qunit', 'copy:qunit-compiled', 'qunit']); 277 grunt.registerMultiTask('phpunit', "Runs PHPUnit tests, including the ajax and multisite tests.", function() { 278 grunt.util.spawn({ 279 cmd: this.data.cmd, 280 args: this.data.args, 281 opts: {stdio: 'inherit'} 282 }, this.async()); 283 }); 284 285 grunt.registerTask('qunit:compiled', "Runs QUnit tests on compiled as well as uncompiled scripts.", 286 ['build', 'copy:qunit', 'qunit', 'clean:qunit']); 287 grunt.registerTask('test', "Runs all QUnit and PHPUnit tasks.", ['qunit:compiled', 'phpunit']); 265 288 266 289 // Default task.
Note: See TracChangeset
for help on using the changeset viewer.