Making the specs run again in an easier way

This commit is contained in:
Tyler Akins
2017-08-02 10:34:09 -05:00
parent 2447f40abd
commit 00af9e978c
3 changed files with 14 additions and 7 deletions

5
run-spec.js Executable file → Normal file
View File

@@ -1,6 +1,6 @@
#!/usr/bin/env node
var async, exec, fs, summary, specFiles;
var async, exec, fs, summary;
function makeShellString(value) {
if (typeof value === 'string') {
@@ -71,7 +71,8 @@ function runTest(test, done) {
Object.keys(test.data).forEach(function (name) {
script.push(addToEnvironment(name, test.data[name]));
});
script.push('. mo spec-runner/spec-template');
script.push('. mo');
script.push('mo spec-runner/spec-template');
test.script = script.join('\n');
async.series([
function (taskDone) {