Skip to content

Instantly share code, notes, and snippets.

@elfenlaid
Last active February 8, 2019 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elfenlaid/22340a17c2318c18c7555ac88ae82fb4 to your computer and use it in GitHub Desktop.
Save elfenlaid/22340a17c2318c18c7555ac88ae82fb4 to your computer and use it in GitHub Desktop.
vscode elixir test setup
{
"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