From 702e9d717d84825641bd7bbdb19e2e4f0578e024 Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Thu, 7 Aug 2014 18:00:18 -0700 Subject: [PATCH] An optional folder path for test-packages test app --- tools/commands.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/commands.js b/tools/commands.js index 7bd105cf1e..c74f86d90c 100644 --- a/tools/commands.js +++ b/tools/commands.js @@ -1051,7 +1051,7 @@ main.registerCommand({ name: 'test-packages', maxArgs: Infinity, options: { - port: { type: String, short: "p", default: ":3000" }, + port: { type: String, short: "p", default: "localhost:3000" }, deploy: { type: String }, production: { type: Boolean }, settings: { type: String }, @@ -1065,6 +1065,9 @@ main.registerCommand({ // Undocumented flag to use a different test driver. 'driver-package': { type: String }, + // Undocumented, sets the path of where the temp app should be created + 'test-app-path': { type: String }, + // hard-coded options with all known Cordova platforms ios: { type: Boolean }, 'ios-device': { type: Boolean }, @@ -1103,7 +1106,8 @@ main.registerCommand({ // package search path baked into release.current.catalog: we are // bundling the test runner app, but finding app packages from the // current app (if any). - var testRunnerAppDir = files.mkdtemp('meteor-test-run'); + var testRunnerAppDir = + options['test-app-path'] || files.mkdtemp('meteor-test-run'); files.cp_r(path.join(__dirname, 'test-runner-app'), testRunnerAppDir); // We are going to operate in the special test project, so let's remap our