Skip to content

Commit

Permalink
Update runTest.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
K0IN committed Jul 28, 2024
1 parent 461e804 commit a3773f8
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions src/test/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,24 @@ import * as path from 'path';
import { runTests } from '@vscode/test-electron';

async function main() {
try {
// The folder containing the Extension Manifest package.json
// Passed to `--extensionDevelopmentPath`
const extensionDevelopmentPath = path.resolve(__dirname, '../../');
try {
// The folder containing the Extension Manifest package.json
// Passed to `--extensionDevelopmentPath`
const extensionDevelopmentPath = path.resolve(__dirname, '../../');

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

// Download VS Code, unzip it and run the integration test
await runTests({ extensionDevelopmentPath, extensionTestsPath });
} catch (err) {
console.error('Failed to run tests', err);
process.exit(1);
}
// The path to test runner
const extensionTestsPath = path.resolve(__dirname, './suite/index');
const launchArgs = [
'--disable-extensions',
'--install-extension=ms-python.debugpy',
'--install-extension=ms-python.python'
];
// Download VS Code, unzip it and run the integration test
await runTests({ extensionDevelopmentPath, extensionTestsPath, launchArgs });
} catch (err) {
console.error('Failed to run tests', err);
process.exit(1);
}
}

main();

0 comments on commit a3773f8

Please sign in to comment.