This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/command_callback/test_julia_languageserver_callbacks.vader

31 lines
1 KiB
Text
Raw Normal View History

2018-09-07 17:16:22 +00:00
Before:
Save g:ale_julia_executable
2018-09-07 17:16:22 +00:00
call ale#assert#SetUpLinterTest('julia', 'languageserver')
After:
Restore
2018-09-07 17:16:22 +00:00
call ale#assert#TearDownLinterTest()
Execute(The default executable path should be correct):
2018-09-08 18:11:11 +00:00
AssertLinter 'julia',
\ ale#Escape('julia') .
2018-09-08 18:11:11 +00:00
\' --startup-file=no --history-file=no -e ' .
\ ale#Escape('using LanguageServer; server = LanguageServer.LanguageServerInstance(stdin, stdout, false); server.runlinter = true; run(server);')
2018-09-07 17:16:22 +00:00
Execute(The executable should be configurable):
let g:ale_julia_executable = 'julia-new'
2018-09-08 18:11:11 +00:00
AssertLinter 'julia-new',
\ ale#Escape('julia-new') .
2018-09-08 18:11:11 +00:00
\' --startup-file=no --history-file=no -e ' .
\ ale#Escape('using LanguageServer; server = LanguageServer.LanguageServerInstance(stdin, stdout, false); server.runlinter = true; run(server);')
2018-09-07 17:16:22 +00:00
Execute(The project root should be detected correctly):
AssertLSPProject ''
call ale#test#SetFilename('julia-languageserver-project/test.jl')
AssertLSPProject ale#path#Simplify(g:dir . '/julia-languageserver-project')