summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-05-13 20:17:35 +0100
committerGitHub <noreply@github.com>2019-05-13 20:17:35 +0100
commit70604828fa8a6713f1e7db2e4e58d44f9099ac87 (patch)
treefc45c2a46640c5e51f093463dcef88d531430786 /test
parentc88ebc5e70852c9571aa7a94b5eb28df000d693a (diff)
parentab7e5b264f27bef8ec8abf795ebe66214d057620 (diff)
downloadale-70604828fa8a6713f1e7db2e4e58d44f9099ac87.zip
Merge pull request #2500 from rliang/texlab
[lsp] Add Texlab support
Diffstat (limited to 'test')
-rw-r--r--test/command_callback/test_texlab_command_callbacks.vader27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/command_callback/test_texlab_command_callbacks.vader b/test/command_callback/test_texlab_command_callbacks.vader
new file mode 100644
index 00000000..ca678d2b
--- /dev/null
+++ b/test/command_callback/test_texlab_command_callbacks.vader
@@ -0,0 +1,27 @@
+Before:
+ call ale#assert#SetUpLinterTest('tex', 'texlab')
+
+ Save &filetype
+ let &filetype = 'tex'
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The language string should be correct):
+ AssertLSPLanguage 'tex'
+
+Execute(The default executable path should be correct):
+ AssertLinter 'texlab', ale#Escape('texlab')
+
+Execute(The project root should be detected correctly):
+ AssertLSPProject ''
+
+Execute(The executable should be configurable):
+ let b:ale_tex_texlab_executable = 'foobar'
+
+ AssertLinter 'foobar', ale#Escape('foobar')
+
+Execute(The options should be configurable):
+ let b:ale_tex_texlab_options = '-v'
+
+ AssertLinter 'texlab', ale#Escape('texlab') . ' ' . b:ale_tex_texlab_options