Created
August 4, 2021 13:15
-
-
Save vovayartsev/801b07f6ffa3cbeea82b79ffc48169c2 to your computer and use it in GitHub Desktop.
VSCODE test runner
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": "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