because method task in the test_task.js module addresses the test task using self.testName.
task(this.testName, prereqs, {async: true}, function () {
var t = jake.Task[self.testName + ':run'];
t.on('complete', function () {
complete();
});
// Pass args to the namespaced test
t.invoke.apply(t, arguments);
});
If the test task is declared inside the namespace
the error arises:
because method
task
in thetest_task.js
module addresses the test task usingself.testName
.