Sha256: c6a1e2bbdb2e740a438fda4832a66fdf262c5d7e9f9b38fb06620603d4d63a9f

Contents?: true

Size: 830 Bytes

Versions: 1

Compression:

Stored size: 830 Bytes

Contents

import * as path from 'path';

import { runTests } from 'vscode-test';

async function main() {
	try {
		const packageRootPath = path.resolve(__dirname, '../../');

		// The folder containing the Extension Manifest package.json
		// Passed to `--extensionDevelopmentPath`
		const extensionDevelopmentPath = packageRootPath;

		// The path to test runner
		// Passed to --extensionTestsPath
		const extensionTestsPath = path.resolve(__dirname, './suite');

		const extensionTestsEnv = {
			"YODA_EXECUTABLE_PATH": path.resolve(packageRootPath, '../../exe/yoda'),
			"YODA_DEBUG": "true",
		}

		// Download VS Code, unzip it and run the integration test
		await runTests({ extensionDevelopmentPath, extensionTestsPath, extensionTestsEnv });
	} catch (err) {
		console.error('Failed to run tests');
		process.exit(1);
	}
}

main();

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yoda-language-server-0.8.0 client/vscode/src/test/runTest.ts