Skip to content

Instantly share code, notes, and snippets.

@atesgoral
Last active April 23, 2020 04:06
Show Gist options
  • Save atesgoral/882b2fc956576c27bd710c526a42979b to your computer and use it in GitHub Desktop.
Save atesgoral/882b2fc956576c27bd710c526a42979b to your computer and use it in GitHub Desktop.
Visual Studio Code custom task for running current MiniTest
{ "key": "shift+ctrl+t", "command": "workbench.action.tasks.runTask", "args": "Run current MiniTest" }
{
"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
}
]
}
}
@bobcats
Copy link

bobcats commented Apr 23, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment