summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-09-04 11:22:57 +0100
committerGitHub <noreply@github.com>2018-09-04 11:22:57 +0100
commit8f2e1c393f74326979e1c74af8dc9b6ca8004778 (patch)
treeb7ff5762201d62333bf1757987434c50b3a5b72f /test/command_callback
parent43b04d4e5b6205bf4456f333bf0595d32f82da6f (diff)
parent3d016f1697dd25443852d18a29a20c42c753dee1 (diff)
downloadale-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.vader19
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'