Last active
April 23, 2020 04:06
-
-
Save atesgoral/882b2fc956576c27bd710c526a42979b to your computer and use it in GitHub Desktop.
Visual Studio Code custom task for running current MiniTest
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
{ "key": "shift+ctrl+t", "command": "workbench.action.tasks.runTask", "args": "Run current MiniTest" } |
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
{ | |
"label": "Run current MiniTest", | |
"type": "shell", | |
"command": "bundle", | |
"args": [ | |
"exec", | |
"rails", | |
"test", | |
"${file}" | |
], | |
"problemMatcher": { | |
"owner": "ruby", | |
"fileLocation": ["relative", "${workspaceFolder}"], | |
"pattern": [ | |
{ | |
"regexp": "^([^:]+: .+)", | |
"message": 1 | |
}, | |
{ | |
"regexp": "^ ([^:]+):(\\d+)", | |
"file": 1, | |
"line": 2 | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for posting this! I think I got some expectations to work, but not sure if it does everything yet, I'm not stellar at regex.
https://gist.github.com/bobcats/431e885a29fdad29cb3787556c8e7b52