summaryrefslogtreecommitdiff
path: root/test/linter/test_bicep_az_bicep.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter/test_bicep_az_bicep.vader')
-rw-r--r--test/linter/test_bicep_az_bicep.vader21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/linter/test_bicep_az_bicep.vader b/test/linter/test_bicep_az_bicep.vader
new file mode 100644
index 00000000..b5dee48e
--- /dev/null
+++ b/test/linter/test_bicep_az_bicep.vader
@@ -0,0 +1,21 @@
+Before:
+ call ale#assert#SetUpLinterTest('bicep', 'az_bicep')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default command should be correct):
+ if has('win32')
+ AssertLinter 'az', ale#Escape('az') . ' bicep build --outfile NUL --file %s '
+ else
+ AssertLinter 'az', ale#Escape('az') . ' bicep build --outfile /dev/null --file %s '
+ endif
+
+Execute(The executable should be configurable):
+ let g:ale_bicep_az_bicep_executable = 'foobar'
+
+ if has('win32')
+ AssertLinter 'foobar', ale#Escape('foobar') . ' bicep build --outfile NUL --file %s '
+ else
+ AssertLinter 'foobar', ale#Escape('foobar') . ' bicep build --outfile /dev/null --file %s '
+ endif