Being a novice to Typescript, JavaScript, and VScode Extensions
I have set up a vscode-test following the guidelines provided here:
Based on the helloworld-test-sample
found at this link:
https://github.com/microsoft/vscode-extension-samples/tree/master/helloworld-test-sample
In my attempt to download a vscode instance in the runTest.ts
class main
method and then install my extension on it, I discovered that the runTest.ts
class is never invoked during debugging. The index.ts
class is triggered, as well as the extension.test.ts
class, with tests running successfully. However, the runTest.ts
class remains untouched. This situation poses an obstacle for me as I aim to accomplish what was demonstrated in the first link.
This same scenario applies to the original example project, leading me to believe it is deliberate. But if so, what is the purpose of the runTest.ts
class?
My objective is to effectively install my extension in a test environment, verify its correct installation and activation. Unfortunately, this plan hits a roadblock when downloadAndUnzipVSCode
fails with the use of await
, while
resolveCliPathFromVSCodeExecutablePath
can only be utilized with Promise<String>
. Hence, I am attempting to replicate the approach outlined in the initial reference.
Could someone please shed light on why the runTest.ts
main method appears to go unexecuted and possibly offer guidance on how to devise a test scenario that entails downloading a VSCode instance, installing a local .vsix extension, and verifying its successful launch?
Thank you :)