summaryrefslogtreecommitdiff
path: root/test/linter/test_kotlin_languageserver.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter/test_kotlin_languageserver.vader')
-rw-r--r--test/linter/test_kotlin_languageserver.vader23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/linter/test_kotlin_languageserver.vader b/test/linter/test_kotlin_languageserver.vader
new file mode 100644
index 00000000..97b867ab
--- /dev/null
+++ b/test/linter/test_kotlin_languageserver.vader
@@ -0,0 +1,23 @@
+Before:
+ call ale#assert#SetUpLinterTest('kotlin', 'languageserver')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default command should be correct):
+ AssertLinter 'kotlin-language-server', ale#Escape('kotlin-language-server')
+
+Execute(Gradle project roots with build.gradle should be detected correctly):
+ call ale#test#SetFilename('../test-files/gradle/build-gradle-project/src/main/kotlin/dummy.kt')
+
+ AssertLSPProject ale#test#GetFilename('../test-files/gradle/build-gradle-project')
+
+Execute(Maven project roots with pom.xml should be detected correctly):
+ call ale#test#SetFilename('../test-files/maven/maven-kotlin-project/src/main/kotlin/dummy.kt')
+
+ AssertLSPProject ale#test#GetFilename('../test-files/maven/maven-kotlin-project')
+
+Execute(No root should be detected if configuration files can't be found):
+ call ale#test#SetFilename('../test-files/gradle/non-gradle-project/src/main/kotlin/dummy.kt')
+
+ AssertLSPProject ''