-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Allow vscode to setup and use envtest
- Loading branch information
1 parent
2ae779f
commit 4202349
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"go.testEnvFile": "${workspaceFolder}/.vscode/test.env" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"tasks": [ | ||
{ | ||
"type": "shell", | ||
"problemMatcher": [], | ||
"label": "Prepare vscode to run envtest-based tests", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true | ||
}, | ||
"command": [ | ||
"make setup-envtest" | ||
], | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "always", | ||
"focus": false, | ||
"panel": "shared", | ||
"showReuseMessage": true, | ||
"clear": false | ||
}, | ||
"runOptions": { | ||
// NOTE: To automatically run this task whenever you open | ||
// the workspace folder, uncomment the following line. | ||
// "runOn": "folderOpen" | ||
}, | ||
} | ||
] | ||
} |