You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering several issues with argument parsing in vscode-test, specifically with the --label, --config, and potentially other parameters. Below are the commands I tried and the unexpected outcomes I observed:
Issues with --label argument:
vscode-test --label main doesn't work
vscode-test -l main doesn't work
Despite having a configuration labeled "main" as shown below, I receive an error stating that a configuration with label "main" could not be found.
import{defineConfig}from'@vscode/test-cli';exportdefaultdefineConfig([{"label": "main",files: 'out/test/**/*.test.js',// Pattern to match test filesversion: 'insiders',// Use VS Code Insiders for running testsmocha: {ui: 'bdd',// Behavior-Driven Development style interfacetimeout: 20000// Set test timeout to 20 seconds}}]);
vscode-test --config .vscode-test.mjs doesn't work
vscode-test --config ./.vscode-test.mjs doesn't work
vscode-test --config ".vscode-test.mjs" doesn't work
vscode-test --config "./.vscode-test.mjs" doesn't work
When attempting to specify the configuration file, various formats of the --config argument lead to failures, either not recognizing the file or not parsing it correctly.
Additional tests:
Using the command "test": "vscode-test --config ./.vscode-test.contextmenu.mjs --label main" also resulted in errors, with the following output:
TypeError: Cannot read properties of undefined (reading 'length')
at [file path on your system]/enhanced-resolve@5.16.0/node_modules/enhanced-resolve/lib/util/path.js:41:12
This error seems to stem from an issue with path handling within the enhanced-resolve package or potentially within vscode-test's usage of it.
Fixed it and will commit shortly.
The text was updated successfully, but these errors were encountered:
jacobwi
added a commit
to jacobwi/vscode-test-cli
that referenced
this issue
Mar 17, 2024
- Resolved argument parsing issues with `--config` and `--label` options, ensuring proper handling of command-line arguments.
- Applied Prettier formatting across the codebase for consistent coding styles.
- Updated project dependencies to their latest versions for improved security and performance.
These changes enhance the tool's reliability, maintainability, and user experience.
Ref: microsoft#31
jacobwi
added a commit
to jacobwi/vscode-test-cli
that referenced
this issue
Mar 17, 2024
- Resolved argument parsing issues with `--config` and `--label` options, ensuring proper handling of command-line arguments.
- Applied Prettier formatting across the codebase for consistent coding styles.
- Updated project dependencies to their latest versions for improved security and performance.
These changes enhance the tool's reliability, maintainability, and user experience.
Ref: microsoft#31
I'm encountering several issues with argument parsing in vscode-test, specifically with the --label, --config, and potentially other parameters. Below are the commands I tried and the unexpected outcomes I observed:
Issues with --label argument:
Despite having a configuration labeled "main" as shown below, I receive an error stating that a configuration with label "main" could not be found.
When attempting to specify the configuration file, various formats of the --config argument lead to failures, either not recognizing the file or not parsing it correctly.
Additional tests:
Using the command "test": "vscode-test --config ./.vscode-test.contextmenu.mjs --label main" also resulted in errors, with the following output:
This error seems to stem from an issue with path handling within the enhanced-resolve package or potentially within vscode-test's usage of it.
Fixed it and will commit shortly.
The text was updated successfully, but these errors were encountered: