LSP-client-example
27 строк · 1023.0 Байт
1/*---------------------------------------------------------------------------------------------
2* Copyright (c) Microsoft Corporation. All rights reserved.
3* Licensed under the MIT License. See License.txt in the project root for license information.
4*--------------------------------------------------------------------------------------------*/
5import * as path from 'path';
6
7import { runTests } from '@vscode/test-electron';
8
9async function main() {
10try {
11// The folder containing the Extension Manifest package.json
12// Passed to `--extensionDevelopmentPath`
13const extensionDevelopmentPath = path.resolve(__dirname, '../../../');
14
15// The path to test runner
16// Passed to --extensionTestsPath
17const extensionTestsPath = path.resolve(__dirname, './index');
18
19// Download VS Code, unzip it and run the integration test
20await runTests({ extensionDevelopmentPath, extensionTestsPath });
21} catch (err) {
22console.error('Failed to run tests');
23process.exit(1);
24}
25}
26
27main();
28