{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": "build", "type": "shell", "group": { "kind": "build", "isDefault": true }, "problemMatcher": [ "$go" ], "presentation": { "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true }, "command": [ "go build -v" ] }, { "label": "test", "type": "shell", "group": { "kind": "test", "isDefault": true }, "problemMatcher": [ "$go" ], "presentation": { "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true }, "command": [ "go test -v &&", // this will most likely fail to scrape, would need sudo to access varnishd. // still runs our executable and prints varnishstat version etc. "./prometheus_varnish_exporter -test" ] } ] }