-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Description
I've been using this VS Code task for about six months, and as far as I can tell, it behaves the same as when I type the commands at the command prompt. Do y'all want to add it to the repo? I'd bet money that other people could improve it in ways I can't imagine.
{
"version": "2.0.0",
"tasks": [
{
"label": "Run Tests on Staged Files",
"type": "shell",
"command": "powershell",
"args": [
"-Command",
"& { .venv/Scripts/activate.ps1; $paths = (git diff --cached --name-only --diff-filter=AM | ForEach-Object { ($_ -split '/')[0,1] -join '/' } | Sort-Object -Unique); foreach ($path in $paths) { python tests/runtests.py --run-stubtest $path } }"
],
"group": "test",
"isBackground": false,
"problemMatcher": [],
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
}
}
]
}Metadata
Metadata
Assignees
Labels
No labels