Created
April 23, 2020 04:00
-
-
Save bobcats/431e885a29fdad29cb3787556c8e7b52 to your computer and use it in GitHub Desktop.
VSCode Vim Minitest Setup with problemMatcher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", | |
] | |
}, | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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