More arguments for test
This commit is contained in:
parent
d73c1a61b9
commit
0b3bfd9598
3 changed files with 15 additions and 2 deletions
|
@ -120,6 +120,7 @@ export class Application {
|
||||||
verbose: this.options.verbose,
|
verbose: this.options.verbose,
|
||||||
log: this.options.log,
|
log: this.options.log,
|
||||||
extraArgs,
|
extraArgs,
|
||||||
|
remote: this.options.remote
|
||||||
});
|
});
|
||||||
|
|
||||||
this._workbench = new Workbench(this._code, this.userDataPath);
|
this._workbench = new Workbench(this._code, this.userDataPath);
|
||||||
|
|
|
@ -50,7 +50,8 @@ const opts = minimist(args, {
|
||||||
'log'
|
'log'
|
||||||
],
|
],
|
||||||
boolean: [
|
boolean: [
|
||||||
'verbose'
|
'verbose',
|
||||||
|
'remote'
|
||||||
],
|
],
|
||||||
default: {
|
default: {
|
||||||
verbose: false
|
verbose: false
|
||||||
|
@ -204,7 +205,8 @@ function createOptions(): ApplicationOptions {
|
||||||
logger: new MultiLogger(loggers),
|
logger: new MultiLogger(loggers),
|
||||||
verbose: opts.verbose,
|
verbose: opts.verbose,
|
||||||
log,
|
log,
|
||||||
screenshotsPath
|
screenshotsPath,
|
||||||
|
remote: opts.remote
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -90,6 +90,7 @@ export interface SpawnOptions {
|
||||||
verbose?: boolean;
|
verbose?: boolean;
|
||||||
extraArgs?: string[];
|
extraArgs?: string[];
|
||||||
log?: string;
|
log?: string;
|
||||||
|
remote?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function createDriverHandle(): Promise<string> {
|
async function createDriverHandle(): Promise<string> {
|
||||||
|
@ -120,6 +121,15 @@ export async function spawn(options: SpawnOptions): Promise<Code> {
|
||||||
'--driver', handle
|
'--driver', handle
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (options.remote) {
|
||||||
|
// Replace workspace path with URI
|
||||||
|
args.shift();
|
||||||
|
args.push(
|
||||||
|
`--${options.workspacePath.endsWith('.code-workspace') ? 'file' : 'folder'}-uri`,
|
||||||
|
`vscode-remote://test+test${options.workspacePath}`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (!codePath) {
|
if (!codePath) {
|
||||||
args.unshift(repoPath);
|
args.unshift(repoPath);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue