Permalink
Browse files

Stub out a test-task that allows checks for installed libs.

  • Loading branch information...
1 parent c2c0c19 commit d950b2270caf571d8adf6882ae3829e292cd0a69 mde committed Jun 24, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 Jakefile
View
@@ -66,9 +66,23 @@ var p = new jake.NpmPublishTask('geddy', [
jake.Task['npm:definePackage'].invoke();
testTask = new jake.TestTask('Geddy', function () {
+ this.testName = 'testBase';
this.testFiles.include('test/*.js');
+ this.showDescription = false;
});
+desc('Run the Geddy tests');
+task('test', function () {
+ var t = jake.Task.testBase;
+ t.addListener('error', function (e) {
+ // TODO: Check the type of error, npm-install the libs, and re-run
+ console.error('If you have errors in the templating tests, ' +
+ 'install jade and handlebars in the base geddy directory.');
+ throw e;
+ });
+ t.invoke();
+}, {async: true});
+
testTask = new jake.TestTask('Geddy model-adapters', function () {
this.testName = 'testModelAdapters'
this.testFiles.include('lib/model/adapters/**/test.js');

0 comments on commit d950b22

Please sign in to comment.