Skip to content

Commit

Permalink
Adds go test task for VS Code
Browse files Browse the repository at this point in the history
  • Loading branch information
topfunky committed Nov 14, 2024
1 parent d3b06de commit b11d883
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Run tests",
"type": "shell",
"command": "go fmt && go test",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "shared",

}
}
]
}
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "go",
"label": "go: test package",
"command": "test",
"args": [
"${fileDirname}"
],
"problemMatcher": [
"$go"
],
"group": "test",
"detail": "go test ${fileDirname}"
}
]
}

0 comments on commit b11d883

Please sign in to comment.