Skip to content

Commit

Permalink
Merge pull request #1 from gkalpak/feat-runTest-support-locale
Browse files Browse the repository at this point in the history
feat(runTests): support specifying the locale
  • Loading branch information
octref committed Mar 21, 2019
2 parents 189f071 + 981e53c commit fe43a61
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,17 @@ export interface TestOptions {
* options.testWorkspace,
* '--extensionDevelopmentPath=' + options.extPath,
* '--extensionTestsPath=' + options.testPath,
* '--locale=en'
* '--locale=' + (options.locale || 'en')
* ];
* ```
*/
vscodeLaunchArgs?: string[];

/**
* The locale to use (e.g. `en-US` or `zh-TW`).
* If not specified, it defaults to `en`.
*/
locale?: string;
}

export async function runTests(options: TestOptions): Promise<number> {
Expand All @@ -73,7 +79,7 @@ export async function runTests(options: TestOptions): Promise<number> {
options.testWorkspace,
'--extensionDevelopmentPath=' + options.extensionPath,
'--extensionTestsPath=' + options.testRunnerPath,
'--locale=en'
'--locale=' + (options.locale || 'en')
];

const cmd = cp.spawn(options.vscodeExecutablePath, args);
Expand Down

0 comments on commit fe43a61

Please sign in to comment.