mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-11 09:24:19 -06:00
Add some new shortcuts for tests options
This commit is contained in:
parent
42183cf6d4
commit
b32d836a61
8
Jakefile
8
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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user