Skip to content

Instantly share code, notes, and snippets.

@xorye
Created December 20, 2019 16:46
Show Gist options
  • Save xorye/5ac9a3c52ce68b5565ceee5381b2ae76 to your computer and use it in GitHub Desktop.
Save xorye/5ac9a3c52ce68b5565ceee5381b2ae76 to your computer and use it in GitHub Desktop.
The result of running `npm run ui-test` in the sample project
> helloworld-sample@0.0.1 ui-test /Users/davidkwon/Documents/Github_Repositories/vscode-extension-tester/sample-projects/helloworld-sample
> npm run compile && extest setup-and-run out/ui-test/*.js -o settings.json
> helloworld-sample@0.0.1 compile /Users/davidkwon/Documents/Github_Repositories/vscode-extension-tester/sample-projects/helloworld-sample
> tsc -p ./
VS Code exists in local cache, skipping download
ChromeDriver 76.0.3809.126 exists in local cache, skipping download
Executing prepublish script 'npm run vscode:prepublish'...
> helloworld-sample@0.0.1 vscode:prepublish /Users/davidkwon/Documents/Github_Repositories/vscode-extension-tester/sample-projects/helloworld-sample
> npm run compile
> helloworld-sample@0.0.1 compile /Users/davidkwon/Documents/Github_Repositories/vscode-extension-tester/sample-projects/helloworld-sample
> tsc -p ./
DONE Packaged: /Users/davidkwon/Documents/Github_Repositories/vscode-extension-tester/sample-projects/helloworld-sample/helloworld-sample-0.0.1.vsix (15 files, 9.05KB)
Installing extensions...
(node:3989) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(node:3989) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Extension 'helloworld-sample-0.0.1.vsix' was successfully installed.
Installing extensions...
(node:3990) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(node:3990) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Extension 'api-handler.vsix' was successfully installed.
Detected user defined code settings
Writing code settings to /Users/davidkwon/Documents/Github_Repositories/vscode-extension-tester/sample-projects/helloworld-sample/test-resources/settings/User/settings.json
1) "before all" hook in "{root}"
Shutting down the browser
2) "after all" hook in "{root}"
0 passing (2s)
2 failing
1) "before all" hook in "{root}":
WebDriverError: unknown error: Chrome failed to start: exited abnormally
(unknown error: unable to discover open pages)
(The process started from chrome location /Users/davidkwon/Documents/Github_Repositories/vscode-extension-tester/sample-projects/helloworld-sample/test-resources/Visual Studio Code.app/Contents/MacOS/Electron is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=76.0.3809.126 (d80a294506b4c9d18015e755cee48f953ddc3f2f-refs/branch-heads/3809@{#1024}),platform=Mac OS X 10.14.6 x86_64)
at Object.checkLegacyResponse (node_modules/selenium-webdriver/lib/error.js:546:15)
at parseHttpResponse (node_modules/selenium-webdriver/lib/http.js:509:13)
at /Users/davidkwon/Documents/Github_Repositories/vscode-extension-tester/sample-projects/helloworld-sample/node_modules/selenium-webdriver/lib/http.js:441:30
at processTicksAndRejections (internal/process/task_queues.js:89:5)
From: Task: WebDriver.createSession()
at Function.createSession (node_modules/selenium-webdriver/lib/webdriver.js:769:24)
at Function.createSession (node_modules/selenium-webdriver/chrome.js:761:15)
at createDriver (node_modules/selenium-webdriver/index.js:170:33)
at Builder.build (node_modules/selenium-webdriver/index.js:642:16)
at VSBrowser.<anonymous> (node_modules/vscode-extension-tester/out/webdriver/browser.js:63:18)
at Generator.next (<anonymous>)
at /Users/davidkwon/Documents/Github_Repositories/vscode-extension-tester/sample-projects/helloworld-sample/node_modules/vscode-extension-tester/out/webdriver/browser.js:8:71
at new Promise (<anonymous>)
at __awaiter (node_modules/vscode-extension-tester/out/webdriver/browser.js:4:12)
at VSBrowser.start (node_modules/vscode-extension-tester/out/webdriver/browser.js:32:16)
2) "after all" hook in "{root}":
TypeError: Cannot read property 'quit' of undefined
at VSBrowser.<anonymous> (node_modules/vscode-extension-tester/out/webdriver/browser.js:107:32)
at Generator.next (<anonymous>)
at /Users/davidkwon/Documents/Github_Repositories/vscode-extension-tester/sample-projects/helloworld-sample/node_modules/vscode-extension-tester/out/webdriver/browser.js:8:71
at new Promise (<anonymous>)
at __awaiter (node_modules/vscode-extension-tester/out/webdriver/browser.js:4:12)
at VSBrowser.quit (node_modules/vscode-extension-tester/out/webdriver/browser.js:105:16)
at Context.<anonymous> (node_modules/vscode-extension-tester/out/suite/runner.js:64:31)
at Generator.next (<anonymous>)
at /Users/davidkwon/Documents/Github_Repositories/vscode-extension-tester/sample-projects/helloworld-sample/node_modules/vscode-extension-tester/out/suite/runner.js:8:71
at new Promise (<anonymous>)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! helloworld-sample@0.0.1 ui-test: `npm run compile && extest setup-and-run out/ui-test/*.js -o settings.json`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the helloworld-sample@0.0.1 ui-test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/davidkwon/.npm/_logs/2019-12-20T16_45_25_015Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment