zed/extensions/elixir/languages/elixir/tasks.json
Felipe Renan 2cff075c53
elixir: Fix mix test $ZED_SYMBOL task (#11879)
$ZED_SYMBOL doesn't really work here once that will try to do something
like this:

  mix test MyModule.MyModuleTest

instead of using the path of the file:

  mix test test/my_module/my_module_test.exs
  
Release Notes:

- Fix mix test $ZED_SYMBOL to use ZED_RELATIVE_FILE instead
- Use ZED_RELATIVE_FILE instead of ZED_FILE to improve mix tasks results
on Elixir umbrella projects
2024-05-31 12:54:14 +02:00

28 lines
670 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"]
},
{
"label": "mix test $ZED_RELATIVE_FILE:$ZED_ROW",
"command": "mix",
"args": ["test", "$ZED_RELATIVE_FILE:$ZED_ROW"]
},
{
"label": "Elixir: break line",
"command": "iex",
"args": ["-S", "mix", "test", "-b", "$ZED_RELATIVE_FILE:$ZED_ROW"]
}
]