Last active
February 8, 2019 20:28
-
-
Save elfenlaid/22340a17c2318c18c7555ac88ae82fb4 to your computer and use it in GitHub Desktop.
vscode elixir test setup
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 all", | |
"type": "shell", | |
"command": "mix", | |
"args": ["test", "--color", "--trace"], | |
"options": { | |
"cwd": "${workspaceRoot}", | |
"requireFiles": [ | |
"test/**/test_helper.exs", | |
"test/**/*_test.exs" | |
], | |
}, | |
"problemMatcher": "$mixTestFailure" | |
}, | |
{ | |
"label": "mix test item", | |
"type": "shell", | |
"command": "mix", | |
"args": ["test", "${relativeFile}:${lineNumber}", "--color", "--trace"], | |
"options": { | |
"cwd": "${workspaceRoot}", | |
"requireFiles": [ | |
"test/**/test_helper.exs", | |
"test/**/*_test.exs" | |
], | |
}, | |
"problemMatcher": "$mixTestFailure" | |
}, | |
{ | |
"label": "mix test file", | |
"type": "shell", | |
"command": "mix", | |
"args": ["test", "${relativeFile}", "--color", "--trace"], | |
"options": { | |
"cwd": "${workspaceRoot}", | |
"requireFiles": [ | |
"test/**/test_helper.exs", | |
"test/**/*_test.exs" | |
], | |
}, | |
"problemMatcher": "$mixTestFailure" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment