From 91127741bea2238277a426a382fec3740103d606 Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Mon, 15 Sep 2014 16:44:36 -0400 Subject: [PATCH] Support running all tests from the root directory Previously, if you did not specify a tests file, you had to be in the 'tests' directory for the "run all tests" functionality to work. Now it will work in any directory. --- tests/run_from_console.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/run_from_console.js b/tests/run_from_console.js index 84ebd10a..0d4cc8f5 100755 --- a/tests/run_from_console.js +++ b/tests/run_from_console.js @@ -23,6 +23,7 @@ program if (program.tests.length === 0) { program.tests = fs.readdirSync(__dirname).filter(function(f) { return (/^test\.(\w|\.|-)+\.js$/).test(f); }); + program.tests = program.tests.map(function (f) { return path.resolve(__dirname, f); }); // add full paths in console.log('using files %s', program.tests); }