Dynamic alias task to test individual files.
This commit is contained in:
parent
09f4854459
commit
fbca6e84c6
@ -29,7 +29,12 @@ module.exports = function(grunt) {
|
|||||||
nodeunit: {
|
nodeunit: {
|
||||||
tests: ['test/tasks/*_test.js']
|
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');
|
grunt.loadTasks('tasks');
|
||||||
|
Loading…
Reference in New Issue
Block a user