Skip to content

Instantly share code, notes, and snippets.

@Sixeight
Created January 12, 2021 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sixeight/84d9bc8ada8014d1087c34961b5d6fc1 to your computer and use it in GitHub Desktop.
Save Sixeight/84d9bc8ada8014d1087c34961b5d6fc1 to your computer and use it in GitHub Desktop.
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "run RSpec test all",
"type": "shell",
"command": "bin/rspec -fd -ff ${relativeFile}",
"group": "test",
"problemMatcher": [
{
"owner": "ruby",
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": {
"regexp": "^rspec\\s+(.*):(\\d+)\\s+#\\s+(.*)$",
"file": 1,
"line": 2,
"message": 3,
}
}
]
},
{
"label": "run RSpec test here",
"type": "shell",
"command": "bin/rspec -fd -ff ${relativeFile}:${lineNumber}",
"group": "test",
"problemMatcher": [
{
"owner": "ruby",
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": {
"regexp": "^rspec\\s+(.*):(\\d+)\\s+#\\s+(.*)$",
"file": 1,
"line": 2,
"message": 3
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment