summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-06-09 00:12:11 +0100
committerw0rp <devw0rp@gmail.com>2019-06-09 00:12:11 +0100
commit507f164a09d2cb3c99983424f9d186d6f4081820 (patch)
treef30d93c8448c2c6dce5bea17027764212274cf2e /test
parent92d515c211716b5d046518547dba85f352e944b1 (diff)
downloadale-507f164a09d2cb3c99983424f9d186d6f4081820.zip
Document and test reason-language-server
Diffstat (limited to 'test')
-rw-r--r--test/command_callback/reason_ls_paths/bsconfig.json0
-rw-r--r--test/command_callback/test_reason_ls_command_callback.vader21
2 files changed, 21 insertions, 0 deletions
diff --git a/test/command_callback/reason_ls_paths/bsconfig.json b/test/command_callback/reason_ls_paths/bsconfig.json
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/command_callback/reason_ls_paths/bsconfig.json
diff --git a/test/command_callback/test_reason_ls_command_callback.vader b/test/command_callback/test_reason_ls_command_callback.vader
new file mode 100644
index 00000000..64f672d7
--- /dev/null
+++ b/test/command_callback/test_reason_ls_command_callback.vader
@@ -0,0 +1,21 @@
+Before:
+ call ale#assert#SetUpLinterTest('reason', 'ls')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The linter should not be run by default):
+ AssertLinterNotExecuted
+
+Execute(The executable should be configurable):
+ let b:ale_reason_ls_executable = 'foobar'
+
+ AssertLinter 'foobar', ale#Escape('foobar')
+
+Execute(There should be no default project root):
+ AssertLSPProject ''
+
+Execute(The project root should be detected using bsconfig.json):
+ call ale#test#SetFilename('reason_ls_paths/test.ml')
+
+ AssertLSPProject ale#path#Simplify(g:dir . '/reason_ls_paths')