mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-02 07:04:33 +00:00
$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
28 lines
670 B
JSON
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"]
|
|
}
|
|
]
|