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

Allow testing against latest Insiders app #89

Merged
merged 1 commit into from
Dec 5, 2017
Merged

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 <gunnar@wagenknecht.org>
@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.

@@ -110,16 +121,16 @@ function getDownloadUrl(clb) {
}

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