2020-11-21 20:56:38 +00:00
|
|
|
Before:
|
|
|
|
call ale#assert#SetUpLinterTest('r', 'languageserver')
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
|
|
|
|
Execute(The default executable path should be correct):
|
2021-07-04 12:34:35 +00:00
|
|
|
AssertLinter 'Rscript', 'Rscript --no-save --no-restore --no-site-file --no-init-file -e ' . ale#Escape('languageserver::run()')
|
2020-11-21 20:56:38 +00:00
|
|
|
|
|
|
|
Execute(The project root should be detected correctly):
|
|
|
|
AssertLSPProject '.'
|
|
|
|
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#test#SetFilename('../test-files/r/dummy/test.R')
|
2020-11-21 20:56:38 +00:00
|
|
|
|
2021-03-20 22:11:22 +00:00
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/r')
|
2020-11-21 20:56:38 +00:00
|
|
|
|
|
|
|
Execute(Should accept configuration settings):
|
|
|
|
AssertLSPConfig {}
|
|
|
|
|
2020-11-21 20:58:34 +00:00
|
|
|
let b:ale_r_languageserver_config = {'r': {'lsp': {'debug': 'true', 'diagnostics': 'true'}}}
|
2020-11-21 20:56:38 +00:00
|
|
|
|
|
|
|
AssertLSPConfig {'r': {'lsp': {'debug': 'true', 'diagnostics': 'true'}}}
|