summaryrefslogtreecommitdiff
path: root/test/linter/test_inko_inko.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter/test_inko_inko.vader')
-rw-r--r--test/linter/test_inko_inko.vader20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/linter/test_inko_inko.vader b/test/linter/test_inko_inko.vader
new file mode 100644
index 00000000..c08cbed4
--- /dev/null
+++ b/test/linter/test_inko_inko.vader
@@ -0,0 +1,20 @@
+Before:
+ call ale#assert#SetUpLinterTest('inko', 'inko')
+ call ale#test#SetFilename('../test-files/inko/test.inko')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default executable path should be correct):
+ AssertLinter 'inko', ale#Escape('inko') . ' build --check --format=json %s'
+
+Execute(The inko callback should include tests/ for test paths):
+ call ale#engine#Cleanup(bufnr(''))
+ noautocmd e! ../test-files/inko/tests/test/test_foo.inko
+ call ale#engine#InitBufferInfo(bufnr(''))
+
+ AssertLinter 'inko',
+ \ ale#Escape('inko')
+ \ . ' build --check --format=json --include '
+ \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/inko/tests/'))
+ \ . ' %s'