mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 15:55:59 +01:00
Enable test/test-integration scripts to take file.test.ts arguments (#306039)
* Enable test/test-integration scripts to take file.test.ts arguments The agent likes to use them this way, when it doesn't read the skill Co-authored-by: Copilot <copilot@github.com> * And this * Fixes * update Co-authored-by: Copilot <copilot@github.com> --------- Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
22
.github/skills/unit-tests/SKILL.md
vendored
22
.github/skills/unit-tests/SKILL.md
vendored
@@ -26,7 +26,25 @@ These scripts download Electron if needed and launch the Mocha test runner.
|
||||
|
||||
### Commonly used options
|
||||
|
||||
#### `--run <file>` - Run tests from a specific file
|
||||
#### Bare file paths - Run tests from specific files
|
||||
|
||||
Pass source file paths directly as positional arguments. The test runner automatically treats bare `.ts`/`.js` positional arguments as `--run` values.
|
||||
|
||||
```bash
|
||||
./scripts/test.sh src/vs/editor/test/common/model.test.ts
|
||||
```
|
||||
|
||||
```bat
|
||||
.\scripts\test.bat src\vs\editor\test\common\model.test.ts
|
||||
```
|
||||
|
||||
Multiple files:
|
||||
|
||||
```bash
|
||||
./scripts/test.sh src/vs/editor/test/common/model.test.ts src/vs/editor/test/common/range.test.ts
|
||||
```
|
||||
|
||||
#### `--run <file>` - Run tests from a specific file (explicit form)
|
||||
|
||||
Accepts a **source file path** (starting with `src/`). The runner strips the `src/` prefix and the `.ts`/`.js` extension automatically to resolve the compiled module.
|
||||
|
||||
@@ -80,7 +98,7 @@ Override the default Mocha timeout for long-running tests.
|
||||
|
||||
### Integration tests
|
||||
|
||||
Integration tests (files ending in `.integrationTest.ts` or located in `extensions/`) are **not run** by `scripts/test.sh`. Use `scripts/test-integration.sh` (or `scripts/test-integration.bat`) instead. See the `integration-tests` skill for details on filtering and running specific integration test files.
|
||||
Integration tests (files ending in `.integrationTest.ts` or located in `extensions/`) are **not run** by `scripts/test.sh`. Use `scripts/test-integration.sh` (or `scripts/test-integration.bat`) instead. See the `integration-tests` skill for details.
|
||||
|
||||
### Compilation requirement
|
||||
|
||||
|
||||
Reference in New Issue
Block a user