ale/test/command_callback/test_elixir_mix_command_cal...

20 lines
546 B
Plaintext
Raw Normal View History

2018-06-07 03:58:32 +00:00
Before:
call ale#assert#SetUpLinterTest('elixir', 'mix')
2018-06-07 16:47:57 +00:00
2018-06-07 03:58:32 +00:00
let g:env_prefix = has('win32')
\ ? 'set MIX_BUILD_PATH=' . ale#Escape('TEMP_DIR') . ' && '
\ : 'MIX_BUILD_PATH=' . ale#Escape('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):
2018-06-07 16:47:57 +00:00
call ale#test#SetFilename('mix_paths/wrapped_project/lib/app.ex')
AssertLinter 'mix',
\ ale#path#CdString(ale#path#Simplify(g:dir . '/mix_paths/wrapped_project'))
2018-06-07 03:58:32 +00:00
\ . g:env_prefix
\ . 'mix compile %s'