diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-09-04 11:22:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-04 11:22:57 +0100 |
commit | 8f2e1c393f74326979e1c74af8dc9b6ca8004778 (patch) | |
tree | b7ff5762201d62333bf1757987434c50b3a5b72f /test/command_callback | |
parent | 43b04d4e5b6205bf4456f333bf0595d32f82da6f (diff) | |
parent | 3d016f1697dd25443852d18a29a20c42c753dee1 (diff) | |
download | ale-8f2e1c393f74326979e1c74af8dc9b6ca8004778.zip |
Merge pull request #1871 from Ophirr33/master
added sbtserver linter
Diffstat (limited to 'test/command_callback')
-rw-r--r-- | test/command_callback/test_scala_sbtserver.vader | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/command_callback/test_scala_sbtserver.vader b/test/command_callback/test_scala_sbtserver.vader new file mode 100644 index 00000000..1b708bd9 --- /dev/null +++ b/test/command_callback/test_scala_sbtserver.vader @@ -0,0 +1,19 @@ +" 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() +Execute(should set sbtserver for sbt project with build.sbt): + 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') + AssertLSPAddress '127.0.0.1:4273' +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 '' + AssertLSPAddress '127.0.0.1:4273' |