Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Allow testing against latest Insiders app#89

Merged
bpasero merged 1 commit intomicrosoft:masterfrom
guw:master
Dec 5, 2017
Merged

Allow testing against latest Insiders app#89
bpasero merged 1 commit intomicrosoft:masterfrom
guw:master

Conversation

@guw
Copy link
Contributor

@guw guw commented Dec 4, 2017

This change allows setting CODE_VERSION to 'insiders' which will trigger
download of an Insiders build and using that for test execution.

Fixes #88.

This change allows setting CODE_VERSION to 'insiders' which will trigger
download of an Insiders build and using that for test execution.

Fixes microsoft#88.

Signed-off-by: Gunnar Wagenknecht <[email protected]>
@guw
Copy link
Contributor Author

guw commented Dec 4, 2017

@bpasero Here is a PR. I hijacked the CODE_VERSION variable. Setting it to 'insiders' will download the insiders build and use that for execution.

For simplicity reason I do expect an external entity to clean-up previous .vscode-test downloads when changing the value of CODE_VERSION.

Also, let me know if there is any readme or changelog that needs to be updated.


getTag(function (tag) {
return clb(['https://vscode-update.azurewebsites.net', tag, downloadPlatform, 'stable'].join('/'));
return clb(['https://vscode-update.azurewebsites.net', tag, downloadPlatform, (isInsiders ? 'insider' : 'stable')].join('/'));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you aren't a fan for the ? operator I can move it into a method and re-use that below as well.

if(isInsiders) {
windowsExecutable = path.join(testRunFolderAbsolute, 'Code - Insiders');
darwinExecutable = path.join(testRunFolderAbsolute, 'Visual Studio Code - Insiders.app', 'Contents', 'MacOS', 'Electron');
linuxExecutable = path.join(testRunFolderAbsolute, 'VSCode-linux-x64', 'code-insiders');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I intentionally dropped the special version handling for older versions for the Insiders stream.

@bpasero
Copy link
Member

bpasero commented Dec 5, 2017

@guw great, thanks!

@bpasero bpasero merged commit 1fa217d into microsoft:master Dec 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants