From b32d836a61a06d6a47d8a541bbc0030dbc20bb25 Mon Sep 17 00:00:00 2001 From: Dan Quirk Date: Thu, 17 Jul 2014 15:26:50 -0700 Subject: [PATCH] Add some new shortcuts for tests options --- Jakefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jakefile b/Jakefile index 62fd6c878d0..19472137511 100644 --- a/Jakefile +++ b/Jakefile @@ -332,7 +332,7 @@ desc("Runs the tests using the built run.js file. Syntax is jake runtests. Optio task("runtests", ["tests", builtLocalDirectory], function() { cleanTestDirs(); host = "mocha" - tests = process.env.test || process.env.tests; + tests = process.env.test || process.env.tests || process.env.t; var testConfigFile = 'test.config'; if(fs.existsSync(testConfigFile)) { fs.unlinkSync(testConfigFile); @@ -365,9 +365,9 @@ desc("Runs the tests using the built run.js file like 'jake runtests'. Syntax is task("runtests-browser", ["tests", "browserify", builtLocalDirectory], function() { cleanTestDirs(); host = "node" - port = process.env.port || '8888'; - browser = process.env.browser || "IE"; - tests = process.env.test || process.env.tests; + port = process.env.port || process.env.p || '8888'; + browser = process.env.browser || process.env.b || "IE"; + tests = process.env.test || process.env.tests || process.env.t; var testConfigFile = 'test.config'; if(fs.existsSync(testConfigFile)) { fs.unlinkSync(testConfigFile);