forked from kubernetes-sigs/cluster-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📖 Document example VSCode envtest integration
* Add 'setup-envtest' make target to setup envtest on demand. * Document how to configure VSCode.
- Loading branch information
1 parent
1a5c13c
commit 4888af5
Showing
6 changed files
with
72 additions
and
0 deletions.
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,32 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "shell", | ||
"label": "sigs.k8s.io/cluster-api: Prepare vscode to run envtest-based tests", | ||
"detail": "Install envtest and configure the vscode-go test environment.", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true | ||
}, | ||
"command": [ | ||
"echo $(make setup-envtest) > ${workspaceFolder}/.vscode/test.env", | ||
], | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "silent", | ||
"focus": true, | ||
"panel": "shared", | ||
"showReuseMessage": true, | ||
"clear": false | ||
}, | ||
"runOptions": { | ||
"runOn": "folderOpen", | ||
"instanceLimit": 1, | ||
}, | ||
"promptOnClose": true, | ||
} | ||
] | ||
} |
Empty file.
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