microsoft / vscode-test-cli

Command-line runner for VS Code tests
MIT License
19 stars 7 forks source link

✨ Feature: Install Dependent/Prerequisite Extensions #17

Closed JustinGrote closed 5 months ago

JustinGrote commented 6 months ago

CC @connor4312 for review

Closes #5

This is an implementation of installing prerequisite extensions. This draft does not tie into the reporter which seems to be specific to the test process and not prerequisite activities.

Follows the recommendations defined in https://github.com/microsoft/vscode-test README

Requesting feedback of the approach and how you want to handle reporting/status updates of the extension installation process, right now it just writes to console.debug

How to evalute

vscode-cli --help
<read about the new -d and -e parameters>
vscode-cli -e 'ms-vscode.powershell' 'ms-vscode.js-debug-nightly@prerelease'
vscode-cli -d #Installs extensionDependencies from package.json
vscode-cli -d -e 'ms-vscode.powershell@prerelease' #Overrides what is in extensionDependencies version.
vscode-cli -e '/path/to/custom/extension.vsix'

For both the Pester and PowerShell vscode extensions, this functionality is mandatory for us to be able to adopt vscode-test-cli over our own runner.

JustinGrote commented 5 months ago

@connor4312 thank you!

connor4312 commented 5 months ago

Thanks for the PR! 0.0.8 with these changes will be available in a few minutes