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
Bartolomeo Stellato f64f0bb48c Added tests
2018-09-07 13:16:22 -04:00

20 lines
941 B
Text

Before:
call ale#assert#SetUpLinterTest('julia', 'languageserver')
After:
call ale#assert#TearDownLinterTest()
Execute(The default executable path should be correct):
AssertLinter 'julia', ale#Escape("julia" . " --startup-file=no --history-file=no -e 'using LanguageServer; server = LanguageServer.LanguageServerInstance(STDIN, STDOUT, false); server.runlinter = true; run(server);'")
Execute(The executable should be configurable):
let g:ale_julia_executable = 'julia-new'
AssertLinter 'julia-new', ale#Escape("julia-new" . " --startup-file=no --history-file=no -e 'using LanguageServer; server = LanguageServer.LanguageServerInstance(STDIN, STDOUT, false); server.runlinter = true; run(server);'")
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')