summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorBen Spiers <ben.spiers22@gmail.com>2018-07-19 22:27:47 +0100
committerBen Spiers <ben.spiers22@gmail.com>2018-07-19 22:27:47 +0100
commite8bea510df1ce952ef877aec3c58b3c39d98b7ae (patch)
tree5d897fbe534b3f8e190e2ad4ebae6852749ef6f4 /test/command_callback
parent324838adae32f4062c2099c297530588fb80a1a3 (diff)
downloadale-e8bea510df1ce952ef877aec3c58b3c39d98b7ae.zip
Add documentation and testing for fortls
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_fortran_fortls_callback.vader18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/command_callback/test_fortran_fortls_callback.vader b/test/command_callback/test_fortran_fortls_callback.vader
new file mode 100644
index 00000000..3be7ff4f
--- /dev/null
+++ b/test/command_callback/test_fortran_fortls_callback.vader
@@ -0,0 +1,18 @@
+Before:
+ call ale#assert#SetUpLinterTest('fortran', 'language_server')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default executable path should be correct):
+ AssertLinter 'fortls', ale#Escape('fortls')
+
+Execute(The project root should be detected correctly):
+ AssertLSPProject ''
+
+ call ale#test#SetFilename('fortran-fortls-project/test.F90')
+
+ AssertLSPProject ale#path#Simplify(g:dir . '/fortran-fortls-project')
+
+Execute(The language should be correct):
+ AssertLSPLanguage 'fortran'