This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/command_callback/test_elixir_mix_command_callbacks.vader

20 lines
709 B
Text
Raw Permalink Normal View History

2018-06-07 03:58:32 +00:00
Before:
call ale#assert#SetUpLinterTest('elixir', 'mix')
call ale#test#SetFilename('elixir_paths/mix_project/lib/app.ex')
let g:env_prefix = ale#Env('MIX_BUILD_PATH', 'TEMP_DIR')
2018-06-07 03:58:32 +00:00
After:
unlet! g:env_prefix
call ale#assert#TearDownLinterTest()
2018-06-07 03:58:32 +00:00
Execute(The default mix command should be correct):
AssertLinterCwd ale#path#Simplify(g:dir . '/elixir_paths/mix_project')
AssertLinter 'mix', g:env_prefix . 'mix compile %s'
Execute(Build mix commands with an umbrella root):
call ale#test#SetFilename('elixir_paths/umbrella_project/apps/mix_project/lib/app.ex')
AssertLinterCwd ale#path#Simplify(g:dir . '/elixir_paths/umbrella_project')
AssertLinter 'mix', g:env_prefix . 'mix compile %s'