Skip to content

Instantly share code, notes, and snippets.

@eteubert
Last active February 13, 2019 01:22
Show Gist options
  • Save eteubert/64c520eb13ffad5ebfc981b8b4aa00be to your computer and use it in GitHub Desktop.
Save eteubert/64c520eb13ffad5ebfc981b8b4aa00be to your computer and use it in GitHub Desktop.
VS Code: Task to run Elixir tests
{
"version": "2.0.0",
"tasks": [{
"group": {
"kind": "test",
"isDefault": true
},
"label": "elixir: run stale tests",
"type": "shell",
"command": "mix test --stale",
"problemMatcher": [],
"presentation": {
"clear": true
}
}, {
"group": "test",
"label": "elixir: run all tests",
"type": "shell",
"command": "mix test",
"problemMatcher": [],
"presentation": {
"clear": true
}
},
{
"group": "test",
"label": "elixir: run test at cursor",
"type": "shell",
"command": "mix test --only line:${lineNumber} ${relativeFile}",
"problemMatcher": [],
"presentation": {
"clear": true
}
}
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment