-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathindex.ts
More file actions
28 lines (25 loc) · 1.08 KB
/
index.ts
File metadata and controls
28 lines (25 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as path from "path";
import { ExTester } from "vscode-extension-tester";
/* tslint:disable:no-console */
async function main(): Promise<void> {
try {
// Run UI command tests
const testPath = path.join(__dirname, "command.test.js");
const exTester = new ExTester("./test-resources");
await exTester.downloadCode();
await exTester.installVsix();
await exTester.installFromMarketplace("redhat.java");
await exTester.downloadChromeDriver();
await exTester.setupRequirements();
// Disable workspace trust via settings to prevent the trust dialog from
// blocking project load on Linux (equivalent to --disable-workspace-trust).
const testSettings = path.join(__dirname, "..", "..", "..", "test", "ui", "test-settings.json");
process.exit(await exTester.runTests(testPath, {resources: [], settings: testSettings}));
} catch (err) {
console.log(err);
process.exit(1);
}
}
main();