From 5322817d1c382d5ba377be0080bd4c5da525cd2f Mon Sep 17 00:00:00 2001 From: Tharre Date: Sun, 25 Jan 2015 20:38:20 +0100 Subject: Add testing framework `bats`, this fixes #6 --- test/fail.bats | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/fail.bats (limited to 'test/fail.bats') 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 ] +} -- cgit v1.2.3-70-g09d2