Skip to content

Commit b32d836

Browse files
committed
Add some new shortcuts for tests options
1 parent 42183cf commit b32d836

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Jakefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ desc("Runs the tests using the built run.js file. Syntax is jake runtests. Optio
332332
task("runtests", ["tests", builtLocalDirectory], function() {
333333
cleanTestDirs();
334334
host = "mocha"
335-
tests = process.env.test || process.env.tests;
335+
tests = process.env.test || process.env.tests || process.env.t;
336336
var testConfigFile = 'test.config';
337337
if(fs.existsSync(testConfigFile)) {
338338
fs.unlinkSync(testConfigFile);
@@ -365,9 +365,9 @@ desc("Runs the tests using the built run.js file like 'jake runtests'. Syntax is
365365
task("runtests-browser", ["tests", "browserify", builtLocalDirectory], function() {
366366
cleanTestDirs();
367367
host = "node"
368-
port = process.env.port || '8888';
369-
browser = process.env.browser || "IE";
370-
tests = process.env.test || process.env.tests;
368+
port = process.env.port || process.env.p || '8888';
369+
browser = process.env.browser || process.env.b || "IE";
370+
tests = process.env.test || process.env.tests || process.env.t;
371371
var testConfigFile = 'test.config';
372372
if(fs.existsSync(testConfigFile)) {
373373
fs.unlinkSync(testConfigFile);

0 commit comments

Comments
 (0)