aboutsummaryrefslogtreecommitdiffstats
path: root/test/fail.bats
diff options
context:
space:
mode:
Diffstat (limited to 'test/fail.bats')
-rw-r--r--test/fail.bats13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/fail.bats b/test/fail.bats
new file mode 100644
index 0000000..1a77ced
--- /dev/null
+++ b/test/fail.bats
@@ -0,0 +1,13 @@
+#!/usr/bin/env bats
+
+load test_helper
+
+@test "invoke with target without do-file" {
+ run redo this-does-not-exist
+ [ $status -ne 0 ]
+}
+
+@test "invoke with failing do-file" {
+ run redo fail
+ [ $status -ne 0 ] && [ ! -e fail_result ]
+}