-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Labels
enhancementNew feature or requestNew feature or requestnew-issueNew issue which was not discussed yetNew issue which was not discussed yet
Description
Describe the request
When running UI tests with:
extest setup-and-run './tests/*.test.js' --uninstall_extension --coverageextest automatically packages the extension into a .vsix and loads it into the VS Code instance used for testing.
However, the .vsix used for testing needs to include the compiled test files, while the .vsix shipped to end users must exclude them. Currently, extest always uses the root .vscodeignore, so there is no way to provide a different ignore list for testing vs. release.
The @vscode/vsce CLI supports an equivalent --ignoreFile option, allowing a custom ignore file when packaging. It would be extremely helpful if extest setup-and-run supported a similar option. This would let users specify an alternative .vscodeignore only for UI testing, without affecting the release process.
--ignore_file <path>
Usage
extest setup-and-run './tests/*.test.js' \
--ignore_file .vscodeignore.test \
--uninstall_extension \
--coverage
This will:
extestpackages the extension using.vscodeignore.test- Production
.vsixcontinues to rely on the standard.vscodeignore
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestnew-issueNew issue which was not discussed yetNew issue which was not discussed yet
Type
Projects
Status
New