"use strict";

var Mocha = require('mocha');

var mocha = new Mocha({ui: 'bdd', reporter: 'spec'});
mocha.addFile('./test/spec/boilerplate-spec.js');

mocha.run(function(failures){
    process.exit(failures);
});

@@ -40,115 +40,306 @@
 ha')
-;%0A%0Avar mocha = new Mocha(%7Bui: 'bdd', reporter: 'spec'%7D);%0Amocha.addFile('./test/spec/boilerplate-spec.js');%0A
+,%0A    fs = require('fs'),%0A    path = require('path');%0A%0Avar mocha = new Mocha;%0A%0Afs.readdirSync('./test/spec').filter(function(file)%7B%0A    return file.substr(-3) === '.js';%0A%0A%7D).forEach(function(file)%7B%0A    mocha.addFile(%0A        path.join('./test/spec', file)%0A    );%0A%7D);%0A%0A// Now, you can run the tests.
 %0Amoc
@@ -365,16 +365,57 @@
 lures)%7B%0A
+    process.on('exit', function () %7B%0A    
     proc
@@ -434,12 +434,20 @@
 lures);%0A
+    %7D);%0A
 %7D);%0A

update node suite to be autoo-generating