-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test: Automated Smoke Test #27456
Comments
@michelkaporin is there a workaround for #27452 on macOS? |
@michelkaporin using the old build does not work because it updates automatically and changing the "update.channel" to "none" has no effect (because the test is probably specifying its own user data folder). |
@michelkaporin there are no "update prompts". But when restarting VS Code you will get the new version automatically. And I think the test suite restarts VS Code for every test, right? |
@weinand Test suite is restarting VS Code for every test, although I am not sure how the update is applied inbetween test cases by Squirrel for Mac. If it launches already updated binary second time (i.e. on the second test case), then you should not get any test failures that are similar to what you had with the current latest Insiders. By the way latest Insiders contains the fix for #27452 and ready to be tested. |
With the fix for #27452 all but one test succeed on macOS:
|
@weinand thank you. Can you tell me if you have any extensions installed in your Insiders build that you've tested? If yes, can you please list them here. I cannot reproduce the test failure, suspecting that extensions could have caused it by changing the DOM of the editor. |
@michelkaporin I've only the ESlint and TSLint extensions installed. |
Ref: #25291
Complexity: 2
OS:
As part of engineering work we have automated major part of our smoke test. To ensure its stability, it is important to run it on different machines.
Running automated test
Prerequisites
Once the test is running, please do not interfere with it by doing selection or focusing anywhere within spawned test VS Code instance.
Approximate running time
10 minutes minimum (the more failures it has, the more it runs due to adaptive retry strategy of the waiting time).
Procedure
git checkout michelkaporin/smoketest
invscode
repository. Currently the code lives on my branch only.cd test/smoke
npm install
npm test -- --latest "path/to/binary" --stable "path/to/binary"
, wherelatest
argument is the path to VS Code executable to conduct testing, andstable
is previous stable version (in order to run 'Data Migration' tests). If the latter argument is ommited, 'Data Migration' tests won't run.Example commands:
npm test -- --latest "C:\Program Files (x86)\Microsoft VS Code Insiders\Code - Insiders.exe" --stable "C:\Program Files (x86)\Microsoft VS Code\Code.exe"
or
npm test -- --latest "/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron" --stable "/Applications/Visual Studio Code.app/Contents/MacOS/Electron"
Known problems
If you get failing tests, please dump the log with failed error messages here.
Any feedback is appreciated 👍
The text was updated successfully, but these errors were encountered: