Skip to content

Instantly share code, notes, and snippets.

@bobcats
Created April 23, 2020 04:00
Show Gist options
  • Save bobcats/431e885a29fdad29cb3787556c8e7b52 to your computer and use it in GitHub Desktop.
Save bobcats/431e885a29fdad29cb3787556c8e7b52 to your computer and use it in GitHub Desktop.
VSCode Vim Minitest Setup with problemMatcher
{
"vim.leader": "<space>",
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"leader",
"w"
],
"commands": [
"workbench.action.files.save",
]
},
{
"before": [
"leader",
"t"
],
"commands": [
"workbench.action.tasks.test"
],
},
{
"before": [
"leader",
"j"
],
"commands": [
{
"command": "workbench.action.tasks.runTask",
"args": "minitest_all"
}
]
}
],
"vim.visualModeKeyBindingsNonRecursive": [
{
"before": [
"g",
"s"
],
"commands": [
":sort",
]
},
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "minitest_current",
"type": "shell",
"command": "rails test ${relativeFile}",
"problemMatcher": {
"owner": "ruby",
"fileLocation": "autoDetect",
"pattern": [
{
"regexp": "^.* \\[([^:]+):(\\d+)|^([^: ]+:.+)",
"file": 1,
"line": 2,
"message": 3
},
{
"regexp": "^([eE]xpected.*)|^ ([^:]+):(\\d+)",
"message": 1,
"file": 2,
"line": 3
}
]
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": true
},
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "minitest_all",
"type": "shell",
"command": "rails test:system test",
"problemMatcher": {
"owner": "ruby",
"fileLocation": "autoDetect",
"pattern": [
{
"regexp": "^.* \\[([^:]+):(\\d+)|^([^: ]+:.+)",
"file": 1,
"line": 2,
"message": 3
},
{
"regexp": "^([eE]xpected.*)|^ ([^:]+):(\\d+)",
"message": 1,
"file": 2,
"line": 3
}
]
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": true
},
"group": "test"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment