Skip to content

Instantly share code, notes, and snippets.

@vovayartsev
Created August 4, 2021 13:15
Show Gist options
  • Save vovayartsev/801b07f6ffa3cbeea82b79ffc48169c2 to your computer and use it in GitHub Desktop.
Save vovayartsev/801b07f6ffa3cbeea82b79ffc48169c2 to your computer and use it in GitHub Desktop.
VSCODE test runner
{
"version": "2.0.0",
"tasks": [
{
"label": "mix test",
"type": "shell",
"command": "mix",
"args": [
"test",
"--color",
"--trace"
],
"options": {
"cwd": "${workspaceRoot}",
"requireFiles": [
"mix.lock"
]
},
"problemMatcher": "$mixTestFailure",
},
{
"label": "mix test file",
"type": "shell",
"command": "./test.sh",
"args": [
"${relativeFile}"
],
"options": {
"cwd": "${workspaceRoot}",
"requireFiles": [
"mix.lock"
]
},
"problemMatcher": "$mixTestFailure"
},
{
"label": "mix test focused",
"type": "shell",
"command": "./test.sh",
"args": [
"${relativeFile}:${lineNumber}",
],
"options": {
"cwd": "${workspaceRoot}",
"requireFiles": [
"mix.lock"
]
},
"problemMatcher": "$mixTestFailure"
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment