summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2020-11-21 15:56:50 +0000
committerGitHub <noreply@github.com>2020-11-21 15:56:50 +0000
commit8e28de142affcc60b2b860603d299c44b43a4040 (patch)
tree7b3868ebe839b653a2f51fe341156c897ca490a2 /test/command_callback
parentdf3163223f26830782400c453d387394ef561682 (diff)
parent49718e0ec6eb4b9068049048c9373167c19257c9 (diff)
downloadale-8e28de142affcc60b2b860603d299c44b43a4040.zip
Merge pull request #3292 from dmitrivereshchagin/add-elvis-handler-for-erlang
Add Elvis handler for Erlang
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_erlang_elvis_command_callback.vader16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/command_callback/test_erlang_elvis_command_callback.vader b/test/command_callback/test_erlang_elvis_command_callback.vader
new file mode 100644
index 00000000..4aab49d6
--- /dev/null
+++ b/test/command_callback/test_erlang_elvis_command_callback.vader
@@ -0,0 +1,16 @@
+Before:
+ let b:file = fnamemodify(bufname(''), ':.')
+ call ale#assert#SetUpLinterTest('erlang', 'elvis')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(Default command should be correct):
+ AssertLinter 'elvis',
+ \ ale#Escape('elvis') . ' rock --output-format=parsable ' . ale#Escape(b:file)
+
+Execute(Executable should be configurable):
+ let b:ale_erlang_elvis_executable = '/path/to/elvis'
+
+ AssertLinter '/path/to/elvis',
+ \ ale#Escape('/path/to/elvis') . ' rock --output-format=parsable ' . ale#Escape(b:file)