You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First I ran the tests using 'npm run ui-test'
npm run ui-test -
36 passing (1m)
1 failing
FYI - the failing test is
open context menu on an element:
StaleElementReferenceError: stale element reference: stale element not found in the current frame
(Session info: chrome=138.0.7204.235)
at Object.throwDecodedError (node_modules\selenium-webdriver\lib\error.js:523:15)
at parseHttpResponse (node_modules\selenium-webdriver\lib\http.js:524:13)
at Executor.execute (node_modules\selenium-webdriver\lib\http.js:456:28)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Driver.execute (node_modules\selenium-webdriver\lib\webdriver.js:745:17)
Then I tried running the tests using ExTester Runner. No tests ran:
Extension 'helloworld-extester-0.1.0.vsix' was successfully installed.
Loading mocha configuration from C:\Temp\vscode-extension-tester-example-main\.mocharc.js
0 passing (1ms)
The 'Tasks' output view shows:
Error: the task 'extester-runner: Run All Tests' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:
{
"type": "shell",
"id": "shell,npx,extest,setup-and-run,'c:\\Temp\\vscode-extension-tester-example-main\\out\\ui-test\\**\\*.test.js',--code_version,max,--type,stable,--code_settings,settings.json,--extensions_dir,.test-extensions,",
"problemMatcher": [],
"label": "extester-runner: Run All Tests"
}
Error: the task 'extester-runner: Run All Tests' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:
{
"type": "shell",
"id": "shell,npx,extest,setup-and-run,'c:\\Temp\\vscode-extension-tester-example-main\\out\\ui-test\\**\\*.test.js',--code_version,max,--type,stable,--code_settings,settings.json,--extensions_dir,.test-extensions,",
"problemMatcher": [],
"label": "extester-runner: Run All Tests"
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I downloaded the test project
https://github.com/redhat-developer/vscode-extension-tester-example
First I ran the tests using 'npm run ui-test'
npm run ui-test -
36 passing (1m)
1 failing
FYI - the failing test is
Then I tried running the tests using ExTester Runner. No tests ran:
The 'Tasks' output view shows:
The 'ExTester Runner' output view shows:
Are there specific settings I need to set?
Beta Was this translation helpful? Give feedback.
All reactions