summaryrefslogtreecommitdiffstats
path: root/.vscode
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-02-20 18:41:27 +1100
committerJesse Duffield <jessedduffield@gmail.com>2023-02-20 19:01:08 +1100
commit76109a4c441f3b0fc8265823bbc3d58f41aaec50 (patch)
tree4106c0f3904351ca09c9fe1491a37909cc4f73bf /.vscode
parent082d342bf8f05edfa5e662389af8590c1923eabc (diff)
sync test list whenever running a test in vscode
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/tasks.json8
1 files changed, 4 insertions, 4 deletions
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index f0d10c7e4..f020e1d0c 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -24,7 +24,7 @@
{
"label": "Run current file integration test",
"type": "shell",
- "command": "go run cmd/integration_test/main.go cli ${relativeFile}",
+ "command": "go generate pkg/integration/tests/tests.go && go run cmd/integration_test/main.go cli ${relativeFile}",
"problemMatcher": [],
"group": {
"kind": "test",
@@ -37,7 +37,7 @@
{
"label": "Run current file integration test (slow)",
"type": "shell",
- "command": "go run cmd/integration_test/main.go cli --slow ${relativeFile}",
+ "command": "go generate pkg/integration/tests/tests.go && go run cmd/integration_test/main.go cli --slow ${relativeFile}",
"problemMatcher": [],
"group": {
"kind": "test",
@@ -49,7 +49,7 @@
{
"label": "Run current file integration test (sandbox)",
"type": "shell",
- "command": "go run cmd/integration_test/main.go cli --sandbox ${relativeFile}",
+ "command": "go generate pkg/integration/tests/tests.go && go run cmd/integration_test/main.go cli --sandbox ${relativeFile}",
"problemMatcher": [],
"group": {
"kind": "test",
@@ -73,7 +73,7 @@
{
"label": "Sync tests list",
"type": "shell",
- "command": "go generate ./...",
+ "command": "go generate pkg/integration/tests/tests.go",
"problemMatcher": [],
"group": {
"kind": "test",