summaryrefslogtreecommitdiff
path: root/test/command_callback/test_ocaml_ols_callbacks.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/command_callback/test_ocaml_ols_callbacks.vader')
-rw-r--r--test/command_callback/test_ocaml_ols_callbacks.vader40
1 files changed, 0 insertions, 40 deletions
diff --git a/test/command_callback/test_ocaml_ols_callbacks.vader b/test/command_callback/test_ocaml_ols_callbacks.vader
deleted file mode 100644
index bf9ae65b..00000000
--- a/test/command_callback/test_ocaml_ols_callbacks.vader
+++ /dev/null
@@ -1,40 +0,0 @@
-Before:
- call ale#assert#SetUpLinterTest('ocaml', 'ols')
-
- Save &filetype
- let &filetype = 'ocaml'
-
-After:
- call ale#assert#TearDownLinterTest()
-
-Execute(The language string should be correct):
- AssertLSPLanguage 'ocaml'
-
-Execute(The default executable should be correct):
- AssertLinter 'ocaml-language-server',
- \ ale#Escape('ocaml-language-server') . ' --stdio'
-
-Execute(The project root should be detected correctly):
- AssertLSPProject ''
-
- call ale#test#SetFilename('../test-files/ols/file.ml')
-
- AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ols')
-
-Execute(The local executable should be used when available):
- call ale#test#SetFilename('../test-files/ols/file.ml')
-
- AssertLinter ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server'),
- \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server')) . ' --stdio'
-
-Execute(The gloabl executable should always be used when use_global is set):
- let g:ale_ocaml_ols_use_global = 1
- call ale#test#SetFilename('../test-files/ols/file.ml')
-
- AssertLinter 'ocaml-language-server',
- \ ale#Escape('ocaml-language-server') . ' --stdio'
-
-Execute(The executable should be configurable):
- let g:ale_ocaml_ols_executable = 'foobar'
-
- AssertLinter 'foobar', ale#Escape('foobar') . ' --stdio'