Skip to content

Instantly share code, notes, and snippets.

@MatthiasWinkelmann
Created May 18, 2017 15:21
Show Gist options
  • Save MatthiasWinkelmann/2cb2a540c49920e34fb8e42a20cb5f58 to your computer and use it in GitHub Desktop.
Save MatthiasWinkelmann/2cb2a540c49920e34fb8e42a20cb5f58 to your computer and use it in GitHub Desktop.
VSCode (Visual Studio Code) tasks.json configuration for rails guard test runner task
{
"command": "watch",
"suppressTaskName": true,
"tasks": [{
"taskName": "watch",
"command": "rbenv",
"args": ["exec", "bundle", "exec", "guard", "--no-interactions"],
"isBackground": true,
"problemMatcher": {
"applyTo": "allDocuments",
"owner": "Ruby",
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": [{
"regexp": "^(Error|Warning|Info):.*$",
"severity": 1
},
{
"regexp": "^\\s*[^#]+#[^:]+:$",
"message": 0
},
{
"regexp": "^\\s*([^:]+):(.*)$",
"message": 5
}, {
"regexp": "^ ([^:]+):(\\d+):in (.+)$",
"file": 1,
"location": 2,
"code": 3
}
],
"watching": {
"activeOnStart": true,
"beginsPattern": "^# Running:$",
"endsPattern": "^\\d+ runs.*$"
}
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment