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('reason', 'ols')
5 let &filetype = 'reason'
8 call ale#assert#TearDownLinterTest()
10 Execute(The language string should be correct):
11 AssertLSPLanguage 'reason'
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.re')
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.re')
28 \ ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server'),
29 \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server')) . ' --stdio'
31 Execute(The global executable should always be used when use_global is set):
32 let g:ale_reason_ols_use_global = 1
33 call ale#test#SetFilename('../test-files/ols/file.re')
35 AssertLinter 'ocaml-language-server',
36 \ ale#Escape('ocaml-language-server') . ' --stdio'
38 Execute(The executable should be configurable):
39 let g:ale_reason_ols_executable = 'foobar'
40 call ale#test#SetFilename('../test-files/dummy')
42 AssertLinter 'foobar', ale#Escape('foobar') . ' --stdio'