|
3 | 3 | * Licensed under the MIT License. See LICENSE.md in the project root for license information. |
4 | 4 | *--------------------------------------------------------------------------------------------*/ |
5 | 5 |
|
6 | | -import { downloadAndUnzipVSCode, resolveCliArgsFromVSCodeExecutablePath, runTests } from '@vscode/test-electron'; |
7 | | -import * as cp from 'child_process'; |
8 | | -import * as path from 'path'; |
| 6 | +// import { downloadAndUnzipVSCode, resolveCliArgsFromVSCodeExecutablePath, runTests } from '@vscode/test-electron'; |
| 7 | +// import * as cp from 'child_process'; |
| 8 | +// import * as path from 'path'; |
9 | 9 |
|
10 | | -async function main(): Promise<void> { |
11 | | - try { |
12 | | - const vscodeExecutablePath = await downloadAndUnzipVSCode('stable'); |
13 | | - const [cli, ...args] = resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath); |
| 10 | +// async function main(): Promise<void> { |
| 11 | +// try { |
| 12 | +// const vscodeExecutablePath = await downloadAndUnzipVSCode('stable'); |
| 13 | +// const [cli, ...args] = resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath); |
14 | 14 |
|
15 | | - cp.spawnSync( |
16 | | - cli, |
17 | | - [ |
18 | | - ...args, |
19 | | - '--install-extension', 'ms-vscode.azure-account', |
20 | | - '--install-extension', 'ms-azuretools.vscode-azureresourcegroups', |
21 | | - '--install-extension', 'ms-python.python', |
22 | | - ], |
23 | | - { |
24 | | - encoding: 'utf-8', |
25 | | - stdio: 'inherit' |
26 | | - }); |
| 15 | +// cp.spawnSync( |
| 16 | +// cli, |
| 17 | +// [ |
| 18 | +// ...args, |
| 19 | +// '--install-extension', 'ms-vscode.azure-account', |
| 20 | +// '--install-extension', 'ms-azuretools.vscode-azureresourcegroups', |
| 21 | +// '--install-extension', 'ms-python.python', |
| 22 | +// ], |
| 23 | +// { |
| 24 | +// encoding: 'utf-8', |
| 25 | +// stdio: 'inherit' |
| 26 | +// }); |
27 | 27 |
|
28 | | - const repoRoot: string = path.resolve(__dirname, '..', '..'); |
29 | | - await runTests({ |
30 | | - vscodeExecutablePath, |
31 | | - extensionDevelopmentPath: repoRoot, |
32 | | - launchArgs: [ |
33 | | - path.resolve(repoRoot, 'test', 'test.code-workspace'), |
34 | | - '--disable-workspace-trust' |
35 | | - ], |
36 | | - extensionTestsPath: path.resolve(repoRoot, 'dist', 'test', 'index'), |
37 | | - extensionTestsEnv: { |
38 | | - DEBUGTELEMETRY: 'v', |
39 | | - MOCHA_timeout: '20000' |
40 | | - } |
41 | | - }); |
42 | | - } catch (err) { |
43 | | - console.error('Failed to run tests'); |
44 | | - process.exit(1); |
45 | | - } |
46 | | -} |
| 28 | +// const repoRoot: string = path.resolve(__dirname, '..', '..'); |
| 29 | +// await runTests({ |
| 30 | +// vscodeExecutablePath, |
| 31 | +// extensionDevelopmentPath: repoRoot, |
| 32 | +// launchArgs: [ |
| 33 | +// path.resolve(repoRoot, 'test', 'test.code-workspace'), |
| 34 | +// '--disable-workspace-trust' |
| 35 | +// ], |
| 36 | +// extensionTestsPath: path.resolve(repoRoot, 'dist', 'test', 'index'), |
| 37 | +// extensionTestsEnv: { |
| 38 | +// DEBUGTELEMETRY: 'v', |
| 39 | +// MOCHA_timeout: '20000' |
| 40 | +// } |
| 41 | +// }); |
| 42 | +// } catch (err) { |
| 43 | +// console.error('Failed to run tests'); |
| 44 | +// process.exit(1); |
| 45 | +// } |
| 46 | +// } |
47 | 47 |
|
48 | | -void main(); |
| 48 | +// TODO: Re-enable test after release |
| 49 | +// void main(); |
0 commit comments