Browse files

Allow hiding of the task-description for TestTask

  • Loading branch information...
1 parent e86f4bd commit 1cd0a97a29a7eedc06791eb1814eecdf283674e4 mde committed Jun 23, 2012
Showing with 11 additions and 1 deletion.
  1. +11 −1 lib/test_task.js
View
12 lib/test_task.js
@@ -64,11 +64,21 @@ var TestTask = function (name, definition) {
*/
this.testFiles = new jake.FileList();
+ /**
+ @name jake.TestTask#showDescription
+ @public
+ @type {Boolean}
+ @description Show the created task when doing Jake -T
+ */
+ this.showDescription = true;
+
if (typeof definition == 'function') {
definition.call(this);
}
- desc('Run the tests for ' + name);
+ if (this.showDescription) {
+ desc('Run the tests for ' + name);
+ }
task(this.testName, function () {
var t = jake.Task[self.testName + ':run'];
t.invoke.apply(t, arguments);

0 comments on commit 1cd0a97

Please sign in to comment.