Update test sample

This commit is contained in:
Pine Wu
2019-06-24 20:21:14 -07:00
parent 51daee98d2
commit 3733516d6c
3 changed files with 16 additions and 16 deletions

View File

@ -66,9 +66,9 @@
"dev": true
},
"agent-base": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.2.1.tgz",
"integrity": "sha512-JVwXMr9nHYTUXsBFKUqhJwvlcYU/blreOEUkhNR2eXZIvwd+c+o5V4MgDPKWnMS/56awN3TRzIP+KoPn+roQtg==",
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz",
"integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==",
"dev": true,
"requires": {
"es6-promisify": "^5.0.0"
@ -294,9 +294,9 @@
}
},
"es6-promise": {
"version": "4.2.6",
"resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.6.tgz",
"integrity": "sha512-aRVgGdnmW2OiySVPUC9e6m+plolMAJKjZnQlCwNSuK5yQ0JN61DZSO1X1Ufd1foqWRAlig0rhduTCHe7sVtK5Q==",
"version": "4.2.8",
"resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz",
"integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==",
"dev": true
},
"es6-promisify": {
@ -1007,15 +1007,15 @@
}
},
"typescript": {
"version": "3.4.5",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.4.5.tgz",
"integrity": "sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw==",
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.2.tgz",
"integrity": "sha512-7KxJovlYhTX5RaRbUdkAXN1KUZ8PwWlTzQdHV6xNqvuFOs7+WBo10TQUqT19Q/Jz2hk5v9TQDIhyLhhJY4p5AA==",
"dev": true
},
"vscode-test": {
"version": "0.4.2",
"resolved": "https://registry.npmjs.org/vscode-test/-/vscode-test-0.4.2.tgz",
"integrity": "sha512-ZqSh1WNQ1It3SVLnuDMS3HmadM86k2dXvv4ZtdT6+ezxZ1NIQRTbE5SZroV0EvIf5KGjhYNbj5HHqUjBsGjV6Q==",
"version": "1.0.0-next.0",
"resolved": "https://registry.npmjs.org/vscode-test/-/vscode-test-1.0.0-next.0.tgz",
"integrity": "sha512-YnAzFK/mTMQjxn6Ohc++2GUikYC3SbONAlghe7RgSsG1NpxK3GbwZldGxio9o0icSVo88DeUhPnFrm8DKm+NxA==",
"dev": true,
"requires": {
"http-proxy-agent": "^2.1.0",

View File

@ -41,6 +41,6 @@
"source-map-support": "^0.5.12",
"tslint": "^5.16.0",
"typescript": "^3.5.1",
"vscode-test": "^0.4.2"
"vscode-test": "^1.0.0-next.0"
}
}

View File

@ -6,14 +6,14 @@ async function main() {
try {
// The folder containing the Extension Manifest package.json
// Passed to `--extensionDevelopmentPath`
const extensionPath = path.resolve(__dirname, '../../');
const extensionDevelopmentPath = path.resolve(__dirname, '../../');
// The path to test runner
// Passed to --extensionTestsPath
const testRunnerPath = path.resolve(__dirname, './suite');
const extensionTestsPath = path.resolve(__dirname, './suite');
// Download VS Code, unzip it and run the integration test
await runTests({ extensionPath, testRunnerPath });
await runTests({ extensionDevelopmentPath, extensionTestsPath });
} catch (err) {
console.error('Failed to run tests');
process.exit(1);