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
This commit is contained in:
Felipe Renan 2024-05-31 11:54:14 +01:00 committed by GitHub
parent 819bb2663d
commit 2cff075c53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,18 +11,18 @@
"args": ["test", "--failed"]
},
{
"label": "mix test $ZED_SYMBOL",
"label": "mix test $ZED_RELATIVE_FILE",
"command": "mix",
"args": ["test", "$ZED_SYMBOL"]
"args": ["test", "$ZED_RELATIVE_FILE"]
},
{
"label": "mix test $ZED_FILE:$ZED_ROW",
"label": "mix test $ZED_RELATIVE_FILE:$ZED_ROW",
"command": "mix",
"args": ["test", "$ZED_FILE:$ZED_ROW"]
"args": ["test", "$ZED_RELATIVE_FILE:$ZED_ROW"]
},
{
"label": "Elixir: break line",
"command": "iex",
"args": ["-S", "mix", "test", "-b", "$ZED_FILE:$ZED_ROW"]
"args": ["-S", "mix", "test", "-b", "$ZED_RELATIVE_FILE:$ZED_ROW"]
}
]