()
| 177 | } |
| 178 | |
| 179 | async function start() { |
| 180 | const platform = computePlatform(); |
| 181 | const vscodeExecutablePath = await downloadAndUnzipVSCode(channel, platform); |
| 182 | const baseLaunchArgs = requiresPythonExtensionToBeInstalled() ? [] : ['--disable-extensions']; |
| 183 | const userDataDirectory = await createSettings(); |
| 184 | const extensionsDir = await getExtensionsDir(); |
| 185 | console.error(`Using extensions development path: ${extensionDevelopmentPath}`); |
| 186 | await installPythonExtension(vscodeExecutablePath, extensionsDir, platform); |
| 187 | await runTests({ |
| 188 | vscodeExecutablePath, |
| 189 | extensionDevelopmentPath: extensionDevelopmentPath, |
| 190 | extensionTestsPath: path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'out', 'test', 'index.node.js'), |
| 191 | launchArgs: baseLaunchArgs |
| 192 | .concat([workspacePath]) |
| 193 | .concat(['--skip-welcome']) |
| 194 | .concat(['--skip-release-notes']) |
| 195 | .concat(['--enable-proposed-api']) |
| 196 | .concat(['--timeout', '5000']) |
| 197 | .concat(['--disable-extension', 'ms-python.isort']) // We don't need this, also has a lot of errors on CI and floods CI logs unnecessarily. |
| 198 | .concat(['--extensions-dir', extensionsDir]) |
| 199 | .concat(['--user-data-dir', userDataDirectory]), |
| 200 | // .concat(['--verbose']), // Too much logging from VS Code, enable this to see what's going on in VSC. |
| 201 | version: channel, |
| 202 | extensionTestsEnv: { ...process.env, DISABLE_INSIDERS_EXTENSION: '1' } |
| 203 | }); |
| 204 | } |
| 205 | |
| 206 | const webTestSummaryJsonFile = IS_SMOKE_TEST() |
| 207 | ? path.join(__dirname, '..', '..', 'logs', 'testresults.json') |
no test coverage detected