2020-10-13 15:35:08 +03:00
|
|
|
import * as path from "path";
|
2020-04-15 01:51:48 +03:00
|
|
|
|
2022-03-17 15:25:51 +03:00
|
|
|
import { runTests } from "@vscode/test-electron";
|
2020-04-15 01:51:48 +03:00
|
|
|
|
|
|
|
async function go() {
|
2020-04-16 23:20:39 +03:00
|
|
|
try {
|
2021-05-05 00:23:02 +03:00
|
|
|
const extensionDevelopmentPath = path.resolve(__dirname, "../..");
|
2020-10-13 15:35:08 +03:00
|
|
|
const extensionTestsPath = path.resolve(__dirname, "./suite");
|
2020-04-15 01:51:48 +03:00
|
|
|
|
2020-04-16 23:20:39 +03:00
|
|
|
await runTests({
|
|
|
|
extensionDevelopmentPath,
|
|
|
|
extensionTestsPath,
|
2021-05-05 00:23:02 +03:00
|
|
|
launchArgs: ["--disable-extensions"],
|
2020-10-13 15:35:08 +03:00
|
|
|
});
|
2020-04-16 23:20:39 +03:00
|
|
|
} catch (err) {
|
2020-10-13 15:35:08 +03:00
|
|
|
process.exit(1);
|
2020-04-16 23:20:39 +03:00
|
|
|
}
|
2020-04-15 01:51:48 +03:00
|
|
|
}
|
|
|
|
|
2020-10-13 15:35:08 +03:00
|
|
|
go();
|