Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Support passing user-data-dir to tests (#144)
Browse files Browse the repository at this point in the history
This allows running multiple sets of tests at the same time (see microsoft/vscode#68988).
  • Loading branch information
DanTup authored and bpasero committed Feb 21, 2019
1 parent ea86293 commit 4f6e30d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/test
Expand Up @@ -51,6 +51,7 @@ if (process.env.CODE_TESTS_PATH) {
var testsWorkspace = process.env.CODE_TESTS_WORKSPACE || testsFolder;
var extensionsFolder = process.env.CODE_EXTENSIONS_PATH || process.cwd();
var locale = process.env.CODE_LOCALE || 'en';
var userDataDir = process.env.CODE_TESTS_DATA_DIR;
var executable = (process.platform === 'darwin') ? darwinExecutable : process.platform === 'win32' ? windowsExecutable : linuxExecutable;

console.log('### VS Code Extension Test Run ###');
Expand All @@ -64,6 +65,10 @@ function runTests() {
'--locale=' + locale,
];

if (userDataDir) {
args.push('--user-data-dir=' + userDataDir);
}

if (process.env.CODE_DISABLE_EXTENSIONS) {
args.push('--disable-extensions');
}
Expand Down

0 comments on commit 4f6e30d

Please sign in to comment.