Dynamic alias task to test individual files.

This commit is contained in:
Kyle Robinson Young 2013-07-11 12:51:23 -07:00
parent 09f4854459
commit fbca6e84c6

View File

@ -29,7 +29,12 @@ module.exports = function(grunt) {
nodeunit: {
tests: ['test/tasks/*_test.js']
}
});
// Dynamic alias task to nodeunit. Run individual tests with: grunt test:events
grunt.registerTask('test', function(file) {
grunt.config('nodeunit.tests', String(grunt.config('nodeunit.tests')).replace('*', file || '*'));
grunt.task.run('nodeunit');
});
grunt.loadTasks('tasks');