Sha256: dc0b0e098da58515d2f0cacbd3a8c7787017861bc3b09a8fabd0bc52df1535cf

Contents?: true

Size: 840 Bytes

Versions: 3

Compression:

Stored size: 840 Bytes

Contents

import * as path from 'path';

import { runTests } from '@vscode/test-electron';

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

3 entries across 3 versions & 1 rubygems

Version Path
yoda-language-server-0.10.1 client/vscode/src/test/runTest.ts
yoda-language-server-0.10.0 client/vscode/src/test/runTest.ts
yoda-language-server-0.9.0 client/vscode/src/test/runTest.ts