2018-08-27 05:12:56 +00:00
|
|
|
" Author: ophirr33 <coghlan.ty@gmail.com>
|
|
|
|
" Description: Tests for the sbt Server lsp linter
|
|
|
|
Before:
|
|
|
|
call ale#assert#SetUpLinterTest('scala', 'sbtserver')
|
2021-03-21 00:21:49 +00:00
|
|
|
|
2018-08-27 05:12:56 +00:00
|
|
|
After:
|
|
|
|
call ale#assert#TearDownLinterTest()
|
2021-03-21 00:21:49 +00:00
|
|
|
|
2018-09-02 00:59:36 +00:00
|
|
|
Execute(should set sbtserver for sbt project with build.sbt):
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#test#SetFilename('../test-files/scala/valid_sbt_project/Main.scala')
|
2018-08-27 05:12:56 +00:00
|
|
|
AssertLSPLanguage 'scala'
|
|
|
|
AssertLSPOptions {}
|
2018-10-30 15:54:40 +00:00
|
|
|
AssertLSPConfig {}
|
2021-03-21 00:21:49 +00:00
|
|
|
AssertLSPProject ale#test#GetFilename('../test-files/scala/valid_sbt_project')
|
2018-09-02 00:59:36 +00:00
|
|
|
AssertLSPAddress '127.0.0.1:4273'
|
2021-03-21 00:21:49 +00:00
|
|
|
|
2018-08-27 05:12:56 +00:00
|
|
|
Execute(should not set sbtserver for sbt project without build.sbt):
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#test#SetFilename('../test-files/scala/invalid_sbt_project/Main.scala')
|
2018-08-27 05:12:56 +00:00
|
|
|
AssertLSPLanguage 'scala'
|
|
|
|
AssertLSPOptions {}
|
2018-10-30 15:54:40 +00:00
|
|
|
AssertLSPConfig {}
|
2018-08-27 05:12:56 +00:00
|
|
|
AssertLSPProject ''
|
2018-09-02 00:59:36 +00:00
|
|
|
AssertLSPAddress '127.0.0.1:4273'
|