summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorpinicarus <pinicarus@protonmail.com>2020-09-30 22:44:19 +0200
committerpinicarus <pinicarus@protonmail.com>2020-09-30 23:16:50 +0200
commitac3c0c093a2e3ea05793e57d3e836751ba67052b (patch)
tree87678c06eaf01db0b6d540d2874218a792350035 /test/command_callback
parent96dcbd1f2069843acdc57646074b3d9f0e768044 (diff)
downloadale-ac3c0c093a2e3ea05793e57d3e836751ba67052b.zip
feat(erlang/dialyzer): add custom options passing
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_erlang_dialyzer_command_callback.vader7
1 files changed, 7 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
index 5e21c053..97e0455f 100644
--- a/test/command_callback/test_erlang_dialyzer_command_callback.vader
+++ b/test/command_callback/test_erlang_dialyzer_command_callback.vader
@@ -25,6 +25,13 @@ Execute(The command should accept configured executable.):
\ . ' -Wunderspecs'
\ . ' %s'
+Execute(The command should accept configured options.):
+ let b:ale_erlang_dialyzer_options = '-r ' . expand('$HOME')
+ AssertLinter 'dialyzer',
+ \ ale#Escape('dialyzer')
+ \ . ' -n --plt ' . ale#Escape(expand('$HOME/.dialyzer_plt'))
+ \ . ' -r ' . expand('$HOME')
+
Execute(The command should accept configured PLT file.):
let b:ale_erlang_dialyzer_plt_file = 'custom-plt'
AssertLinter 'dialyzer',