2018-08-27 01:12:56 -04:00
|
|
|
" Author: ophirr33 <coghlan.ty@gmail.com>
|
|
|
|
" Description: Tests for the sbt Server lsp linter
|
|
|
|
|
|
|
|
Before:
|
|
|
|
call ale#assert#SetUpLinterTest('scala', 'sbtserver')
|
|
|
|
After:
|
|
|
|
call ale#assert#TearDownLinterTest()
|
2018-09-01 20:59:36 -04:00
|
|
|
Execute(should set sbtserver for sbt project with build.sbt):
|
2018-08-27 01:12:56 -04:00
|
|
|
call ale#test#SetFilename('../scala_fixtures/valid_sbt_project/Main.scala')
|
|
|
|
AssertLSPLanguage 'scala'
|
|
|
|
AssertLSPOptions {}
|
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../scala_fixtures/valid_sbt_project')
|
2018-09-01 20:59:36 -04:00
|
|
|
AssertLSPAddress '127.0.0.1:4273'
|
2018-08-27 01:12:56 -04:00
|
|
|
Execute(should not set sbtserver for sbt project without build.sbt):
|
|
|
|
call ale#test#SetFilename('../scala_fixtures/invalid_sbt_project/Main.scala')
|
|
|
|
AssertLSPLanguage 'scala'
|
|
|
|
AssertLSPOptions {}
|
|
|
|
AssertLSPProject ''
|
2018-09-01 20:59:36 -04:00
|
|
|
AssertLSPAddress '127.0.0.1:4273'
|