mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
An optional folder path for test-packages test app
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user