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,
|
||||
log: this.options.log,
|
||||
extraArgs,
|
||||
remote: this.options.remote
|
||||
});
|
||||
|
||||
this._workbench = new Workbench(this._code, this.userDataPath);
|
||||
|
|
|
@ -50,7 +50,8 @@ const opts = minimist(args, {
|
|||
'log'
|
||||
],
|
||||
boolean: [
|
||||
'verbose'
|
||||
'verbose',
|
||||
'remote'
|
||||
],
|
||||
default: {
|
||||
verbose: false
|
||||
|
@ -204,7 +205,8 @@ function createOptions(): ApplicationOptions {
|
|||
logger: new MultiLogger(loggers),
|
||||
verbose: opts.verbose,
|
||||
log,
|
||||
screenshotsPath
|
||||
screenshotsPath,
|
||||
remote: opts.remote
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -90,6 +90,7 @@ export interface SpawnOptions {
|
|||
verbose?: boolean;
|
||||
extraArgs?: string[];
|
||||
log?: string;
|
||||
remote?: boolean;
|
||||
}
|
||||
|
||||
async function createDriverHandle(): Promise<string> {
|
||||
|
@ -120,6 +121,15 @@ export async function spawn(options: SpawnOptions): Promise<Code> {
|
|||
'--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) {
|
||||
args.unshift(repoPath);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue