Skip to content
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

Feature Request: Integration testing using packed extensions #289

Open
Danielku15 opened this issue Oct 16, 2024 · 0 comments
Open

Feature Request: Integration testing using packed extensions #289

Danielku15 opened this issue Oct 16, 2024 · 0 comments

Comments

@Danielku15
Copy link

Danielku15 commented Oct 16, 2024

Background
I ran now multiple times into the problem that my tests couldn't catch problems which occurred only on the published version. The reason in most cases was that things are working fine when the extension is launched from the "development working directory" while failing when cleanly installed and installed to the "vscode extension directory" due to file system differences.

Especially when bundling dependencies and excluding files from the packed dependency things can easily go wrong and the test executed will not catch such errors.

Requested solution
For those scenarios it would be awesome if the vscode extension test framework and runners would support a mechanism, where the extension is automatically packed into a vsix (like in npx @vscode/vsce package), installed into a clean vscode instance (--install-extension + --extensions-dir), and then tests are executed using against this instance.

I think I'll be able to stitch something together myself in my CI/CD pipeline but ultimately I'd hope to have something as simple as setting an option in the defineConfig() options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant