Files
oak-gpui/extensions/elixir/languages/elixir/tasks.json
T
João Otávio Biondo a6e0c8aca1 elixir: Add runnable tasks (#12526)
Release Notes:

- Added runnable tasks to Elixir tests (modules, `describe` and `test`
blocks)


https://github.com/zed-industries/zed/assets/7737375/06f1b4cb-0364-4c30-982d-6dda3193b5d2
2024-05-31 20:49:34 +02:00

31 lines
735 B
JSON

// Taken from https://gist.github.com/josevalim/2e4f60a14ccd52728e3256571259d493#gistcomment-4995881
[
{
"label": "mix test",
"command": "mix",
"args": ["test"]
},
{
"label": "mix test --failed",
"command": "mix",
"args": ["test", "--failed"]
},
{
"label": "mix test $ZED_RELATIVE_FILE",
"command": "mix",
"args": ["test", "$ZED_RELATIVE_FILE"],
"tags": ["elixir-module-test"]
},
{
"label": "mix test $ZED_RELATIVE_FILE:$ZED_ROW",
"command": "mix",
"args": ["test", "$ZED_RELATIVE_FILE:$ZED_ROW"],
"tags": ["elixir-test"]
},
{
"label": "Elixir: break line",
"command": "iex",
"args": ["-S", "mix", "test", "-b", "$ZED_RELATIVE_FILE:$ZED_ROW"]
}
]