ale/test/linter/test_scala_sbtserver.vader

24 lines
816 B
Plaintext
Raw Normal View History

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')
2018-08-27 05:12:56 +00:00
After:
call ale#assert#TearDownLinterTest()
Execute(should set sbtserver for sbt project with build.sbt):
call ale#test#SetFilename('../test-files/scala/valid_sbt_project/Main.scala')
2018-08-27 05:12:56 +00:00
AssertLSPLanguage 'scala'
AssertLSPOptions {}
AssertLSPConfig {}
AssertLSPProject ale#test#GetFilename('../test-files/scala/valid_sbt_project')
AssertLSPAddress '127.0.0.1:4273'
2018-08-27 05:12:56 +00:00
Execute(should not set sbtserver for sbt project without build.sbt):
call ale#test#SetFilename('../test-files/scala/invalid_sbt_project/Main.scala')
2018-08-27 05:12:56 +00:00
AssertLSPLanguage 'scala'
AssertLSPOptions {}
AssertLSPConfig {}
2018-08-27 05:12:56 +00:00
AssertLSPProject ''
AssertLSPAddress '127.0.0.1:4273'