Update to latest vscode-test API

This commit is contained in:
Pine Wu
2019-05-24 01:02:37 -07:00
parent 0ff4084ab8
commit a0c17bdad3
3 changed files with 5 additions and 8 deletions

View File

@ -1013,9 +1013,9 @@
"dev": true
},
"vscode-test": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/vscode-test/-/vscode-test-0.4.1.tgz",
"integrity": "sha512-uIi/07uG/gmCbD9Y9bFpNzmk4el82xiclijEdL426A3jOFfvwdqgfmtuWYfxEGo0w6JY9EqVDTGQCXwuInXVTQ==",
"version": "0.4.2",
"resolved": "https://registry.npmjs.org/vscode-test/-/vscode-test-0.4.2.tgz",
"integrity": "sha512-ZqSh1WNQ1It3SVLnuDMS3HmadM86k2dXvv4ZtdT6+ezxZ1NIQRTbE5SZroV0EvIf5KGjhYNbj5HHqUjBsGjV6Q==",
"dev": true,
"requires": {
"http-proxy-agent": "^2.1.0",

View File

@ -40,6 +40,6 @@
"source-map-support": "^0.5.12",
"tslint": "^5.16.0",
"typescript": "^3.4.5",
"vscode-test": "^0.4.1"
"vscode-test": "^0.4.2"
}
}

View File

@ -6,15 +6,12 @@ async function go() {
try {
const extensionPath = path.resolve(__dirname, '../../');
const testRunnerPath = path.resolve(__dirname, './suite');
const testWorkspace = path.resolve(__dirname, '../../test/suite/fixture');
await runTests({
// The folder containing the Extension Manifest package.json
extensionPath,
// The path to test runner
testRunnerPath,
// The workspace to open on starting up VS Code
testWorkspace
testRunnerPath
});
} catch (err) {
console.error('Failed to run tests');