diff options
author | Antoine Gagné <AntoineGagne@users.noreply.github.com> | 2019-05-19 16:16:17 -0400 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2019-05-19 21:16:17 +0100 |
commit | 3b7c86e401eb488acd8713f7c9ee81344095080d (patch) | |
tree | 2eb2260f62c3529c2fb51998a4581fc9397878f6 /test/command_callback/test_erlang_dialyzer_command_callback.vader | |
parent | 652d991077ac3261e51abfa51d979774a555b405 (diff) | |
download | ale-3b7c86e401eb488acd8713f7c9ee81344095080d.zip |
Add support for Erlang dialyzer (#2509)
* Add support for Erlang dialyzer
* Add an option to specify rebar3 profile
In doing so, the use of the `**` wildcard becomes unnecessary.
Diffstat (limited to 'test/command_callback/test_erlang_dialyzer_command_callback.vader')
-rw-r--r-- | test/command_callback/test_erlang_dialyzer_command_callback.vader | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/command_callback/test_erlang_dialyzer_command_callback.vader b/test/command_callback/test_erlang_dialyzer_command_callback.vader new file mode 100644 index 00000000..5e21c053 --- /dev/null +++ b/test/command_callback/test_erlang_dialyzer_command_callback.vader @@ -0,0 +1,37 @@ +Before: + call ale#assert#SetUpLinterTest('erlang', 'dialyzer') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default command should be correct.): + AssertLinter 'dialyzer', + \ ale#Escape('dialyzer') + \ . ' -n --plt ' . ale#Escape(expand('$HOME/.dialyzer_plt')) + \ . ' -Wunmatched_returns' + \ . ' -Werror_handling' + \ . ' -Wrace_conditions' + \ . ' -Wunderspecs' + \ . ' %s' + +Execute(The command should accept configured executable.): + let b:ale_erlang_dialyzer_executable = '/usr/bin/dialyzer' + AssertLinter '/usr/bin/dialyzer', + \ ale#Escape('/usr/bin/dialyzer') + \ . ' -n --plt ' . ale#Escape(expand('$HOME/.dialyzer_plt')) + \ . ' -Wunmatched_returns' + \ . ' -Werror_handling' + \ . ' -Wrace_conditions' + \ . ' -Wunderspecs' + \ . ' %s' + +Execute(The command should accept configured PLT file.): + let b:ale_erlang_dialyzer_plt_file = 'custom-plt' + AssertLinter 'dialyzer', + \ ale#Escape('dialyzer') + \ . ' -n --plt ' . ale#Escape(expand('custom-plt')) + \ . ' -Wunmatched_returns' + \ . ' -Werror_handling' + \ . ' -Wrace_conditions' + \ . ' -Wunderspecs' + \ . ' %s' |