From 08ad8a0b2d58d8305efb8a102cbdb9a26715be53 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Fri, 4 Jul 2025 12:19:04 +0200 Subject: [PATCH] Don't generate test list before running integration test It's annoyingly slow, and there is a separate task for generating the list if needed. Also, clear the terminal before running the test; this makes it easier to see the results of the last test run. --- .vscode/tasks.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 8027a5344..436275394 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -24,22 +24,24 @@ { "label": "Run current file integration test", "type": "shell", - "command": "go generate pkg/integration/tests/tests.go && go run cmd/integration_test/main.go cli ${relativeFile}", + "command": "go run cmd/integration_test/main.go cli ${relativeFile}", "problemMatcher": [], "group": { "kind": "test", "isDefault": true }, "presentation": { + "clear": true, "focus": true } }, { "label": "Run current file integration test (slow)", "type": "shell", - "command": "go generate pkg/integration/tests/tests.go && go run cmd/integration_test/main.go cli --slow ${relativeFile}", + "command": "go run cmd/integration_test/main.go cli --slow ${relativeFile}", "problemMatcher": [], "group": { + "clear": true, "kind": "test", }, "presentation": { @@ -49,12 +51,13 @@ { "label": "Run current file integration test (sandbox)", "type": "shell", - "command": "go generate pkg/integration/tests/tests.go && go run cmd/integration_test/main.go cli --sandbox ${relativeFile}", + "command": "go run cmd/integration_test/main.go cli --sandbox ${relativeFile}", "problemMatcher": [], "group": { "kind": "test", }, "presentation": { + "clear": true, "focus": true } },