2021-03-01 20:11:10 +00:00
|
|
|
Before:
|
|
|
|
call ale#assert#SetUpLinterTest('elixir', 'dialyxir')
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#test#SetFilename('../test-files/elixir/mix_project/lib/app.ex')
|
2021-03-01 20:11:10 +00:00
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
|
|
|
|
Execute(Builds dialyxir command with a normal project):
|
2021-03-20 22:11:22 +00:00
|
|
|
AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elixir/mix_project')
|
2021-03-01 20:11:10 +00:00
|
|
|
AssertLinter 'mix', 'mix help dialyzer && mix dialyzer'
|
|
|
|
|
|
|
|
Execute(Builds dialyxir command with an umbrella project):
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#test#SetFilename('../test-files/elixir/umbrella_project/apps/mix_project/lib/app.ex')
|
2021-03-01 20:11:10 +00:00
|
|
|
|
2021-03-20 22:11:22 +00:00
|
|
|
AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elixir/umbrella_project')
|
2021-03-01 20:11:10 +00:00
|
|
|
AssertLinter 'mix', 'mix help dialyzer && mix dialyzer'
|