summaryrefslogtreecommitdiff
path: root/test/linter/test_cucumber.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter/test_cucumber.vader')
-rw-r--r--test/linter/test_cucumber.vader18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/linter/test_cucumber.vader b/test/linter/test_cucumber.vader
new file mode 100644
index 00000000..6a7851ef
--- /dev/null
+++ b/test/linter/test_cucumber.vader
@@ -0,0 +1,18 @@
+Before:
+ call ale#assert#SetUpLinterTest('cucumber', 'cucumber')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(Should require the nearest features dir, if one is found):
+ call ale#test#SetFilename('../test-files/cucumber/features/cuke.feature')
+
+ AssertLinter 'cucumber',
+ \ 'cucumber --dry-run --quiet --strict --format=json '
+ \ . '-r ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/cucumber/features/')) . ' %t'
+
+Execute(Should require nothing if no features dir is found):
+ call ale#test#SetFilename('something/without/a/features/dir')
+
+ AssertLinter 'cucumber',
+ \ 'cucumber --dry-run --quiet --strict --format=json %t'