All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 call ale#assert#SetUpLinterTest('ocaml', 'ols')
5 let &filetype = 'ocaml'
8 call ale#assert#TearDownLinterTest()
10 Execute(The language string should be correct):
11 AssertLSPLanguage 'ocaml'
13 Execute(The default executable should be correct):
14 AssertLinter 'ocaml-language-server',
15 \ ale#Escape('ocaml-language-server') . ' --stdio'
17 Execute(The project root should be detected correctly):
20 call ale#test#SetFilename('../test-files/ols/file.ml')
22 AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ols')
24 Execute(The local executable should be used when available):
25 call ale#test#SetFilename('../test-files/ols/file.ml')
27 AssertLinter ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server'),
28 \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server')) . ' --stdio'
30 Execute(The global executable should always be used when use_global is set):
31 let g:ale_ocaml_ols_use_global = 1
32 call ale#test#SetFilename('../test-files/ols/file.ml')
34 AssertLinter 'ocaml-language-server',
35 \ ale#Escape('ocaml-language-server') . ' --stdio'
37 Execute(The executable should be configurable):
38 let g:ale_ocaml_ols_executable = 'foobar'
39 call ale#test#SetFilename('../test-files/dummy')
41 AssertLinter 'foobar', ale#Escape('foobar') . ' --stdio'