Hi guys, I'm trying to play with the tester on my own project. But it ends with the error message "TypeError: Cannot read property 'driver' of undefined". Meanwhile the simple Hello World extensions works.
VS Code exists in local cache, skipping download
ChromeDriver 78.0.3904.105 exists in local cache, skipping download
This extension consists of 717 files, out of which 391 are JavaScript files. For performance reasons, you should bundle your extension: https://aka.ms/vscode-bundle-extension . You should also exclude unnecessary files by adding them to your .vscodeignore: https://aka.ms/vscode-vscodeignore
DONE Packaged: C:\gitroot\vscode-test\vscode-test-0.4.1.vsix (717 files, 9.02MB)
Installing extensions...
Extension 'vscode-test-0.4.1.vsix' was successfully installed.
Installing extensions...
Extension 'api-handler.vsix' was successfully installed.
Writing code settings to C:\gitroot\vscode-test\test-resources\settings\User\settings.json
DevTools listening on ws://127.0.0.1:9638/devtools/browser/17166905-b990-48d2-ac7a-f7b1c976b998
Warning: 'disable-background-networking' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'disable-client-side-phishing-detection' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'disable-default-apps' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'disable-hang-monitor' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'disable-popup-blocking' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'disable-prompt-on-repost' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'disable-sync' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'enable-automation' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'enable-blink-features' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'enable-logging' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'force-fieldtrials' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'ignore-certificate-errors' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'load-extension' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'log-level' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'first-run' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'sandbox' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'password-store' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'remote-debugging-port' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'test-type' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'use-mock-keychain' is not in the list of known options, but still passed to Electron/Chromium.
[main 2020-03-10T08:35:27.927Z] update#setState idle
(node:21856) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:21856) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:21856) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:21856) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
[32192:29608:0310/163531.253:WARNING:appcenter_api.cc(116)] Instance ID : 8bfb442b-6489-429d-bb33-3f322476b4e4 User ID : 8bfb442b-6489-429d-bb33-3f322476b4e4
Session ID : a5976491-6ef5-4c90-9a50-853bfa3674f8
[30140:0310/163532.095:INFO:CONSOLE(4133)] "Overwriting grammar scope name to file mapping for scope source.sql.
Old grammar file: file:///c%3A/gitroot/vscode-test/test-resources/VSCode-win32-x64-archive/resources/app/extensions/sql/syntaxes/sql.tmLanguage.json.
New grammar file: file:///c%3A/Users/test/.vscode/extensions/ms-mssql.mssql-1.9.0/syntaxes/SQL.plist", source: file:///C:/gitroot/vscode-test/test-resources/VSCode-win32-x64-archive/resources/app/out/vs/workbench/workbench.desktop.main.js (4133)
(node:5780) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:5780) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
[30140:0310/163533.979:INFO:CONSOLE(3940)] "Extension Host", source: file:///C:/gitroot/vscode-test/test-resources/VSCode-win32-x64-archive/resources/app/out/vs/workbench/workbench.desktop.main.js (3940)
[30140:0310/163533.980:INFO:CONSOLE(3940)] "%c[vsonline][activate][verbose] Initializing authentication
%c[vsonline][activate][verbose] Initializing self-hosted environment registry +8ms
", source: file:///C:/gitroot/vscode-test/test-resources/VSCode-win32-x64-archive/resources/app/out/vs/workbench/workbench.desktop.main.js (3940)
[30140:0310/163533.981:INFO:CONSOLE(3940)] "console.groupEnd", source: file:///C:/gitroot/vscode-test/test-resources/VSCode-win32-x64-archive/resources/app/out/vs/workbench/workbench.desktop.main.js (3940)
[30140:0310/163534.003:INFO:CONSOLE(258)] "%c[Extension Host] %c[vsonline][activate][info] Extension activating color: blue color: [object Object] +146ms", source: file:///C:/gitroot/vscode-test/test-resources/VSCode-win32-x64-archive/resources/app/out/vs/workbench/workbench.desktop.main.js (258)
[30140:0310/163534.004:INFO:CONSOLE(258)] "%c[Extension Host] %c[vsonline][EnvironmentDetailsExplorer][info] Updating environment details color: blue color:
+10ms", source: file:///C:/gitroot/vscode-test/test-resources/VSCode-win32-x64-archive/resources/app/out/vs/workbench/workbench.desktop.main.js (258)
Hello World Example UI Tests
1) "before all" hook
Shutting down the browser
Uninstalling vscode-extension-tester.api-handler...
Extension 'vscode-extension-tester.api-handler' was successfully uninstalled!
0 passing (11s)
1 failing
1) Hello World Example UI Tests
"before all" hook:
TypeError: Cannot read property 'driver' of undefined
at Context.before (test_out\test\e2e\ext.js:22:63)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] e2e-testing: `npm run pretest:client && npm run compile && .\node_modules\.bin\extest setup-and-run .\test_out\test\e2e\ext.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] e2e-testing 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! C:\Users\test\AppData\Roaming\npm-cache\_logs\2020-03-10T08_35_35_669Z-debug.log