2020-10-13 15:35:08 +03:00
|
|
|
import * as path from "path";
|
2020-04-15 01:51:48 +03:00
|
|
|
|
2020-10-13 15:35:08 +03:00
|
|
|
import { runTests } from "vscode-test";
|
2020-04-15 01:51:48 +03:00
|
|
|
|
|
|
|
async function go() {
|
2020-04-16 23:20:39 +03:00
|
|
|
try {
|
2020-10-13 15:35:08 +03:00
|
|
|
const extensionDevelopmentPath = path.resolve(__dirname, "..");
|
|
|
|
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,
|
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
|
|
|
console.error("Failed to run tests");
|
|
|
|
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();
|