Pin to vscode version for integration testing

This commit is contained in:
Jason Reed
2020-07-09 18:39:19 -04:00
parent 379b69a0e9
commit 3207c594e7

View File

@@ -9,8 +9,13 @@ type Suite = {
extensionDevelopmentPath: string;
extensionTestsPath: string;
launchArgs: string[];
version?: string;
};
// Which version of vscode to test against. Can set to 'stable' or
// 'insiders'. See runTest.d.ts in vscode-test for more details.
const VSCODE_VERSION = '1.46.0';
/**
* Run an integration test suite `suite`, retrying if it segfaults, at
* most `tries` times.
@@ -53,15 +58,17 @@ async function main() {
// List of integration test suites.
// The path to the extension test runner script is passed to --extensionTestsPath.
const integrationTestSuites = [
const integrationTestSuites: Suite[] = [
// Tests with no workspace selected upon launch.
{
version: VSCODE_VERSION,
extensionDevelopmentPath: extensionDevelopmentPath,
extensionTestsPath: path.resolve(__dirname, 'no-workspace', 'index'),
launchArgs: ['--disable-extensions'],
},
// Tests with a simple workspace selected upon launch.
{
version: VSCODE_VERSION,
extensionDevelopmentPath: extensionDevelopmentPath,
extensionTestsPath: path.resolve(__dirname, 'minimal-workspace', 'index'),
launchArgs: [