aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_helper.bash
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2015-01-25 20:38:20 +0100
committerTharre <tharre3@gmail.com>2015-01-25 20:41:16 +0100
commit5322817d1c382d5ba377be0080bd4c5da525cd2f (patch)
treea6053e4c13e72ed29f6441e7626b5d751d79102a /test/test_helper.bash
parentc4a2f0dec7bd7d3f50115bb88467a0841c91d957 (diff)
downloadredo-5322817d1c382d5ba377be0080bd4c5da525cd2f.tar.gz
redo-5322817d1c382d5ba377be0080bd4c5da525cd2f.tar.xz
redo-5322817d1c382d5ba377be0080bd4c5da525cd2f.zip
Add testing framework `bats`, this fixes #6
Diffstat (limited to 'test/test_helper.bash')
-rw-r--r--test/test_helper.bash12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_helper.bash b/test/test_helper.bash
new file mode 100644
index 0000000..2c26399
--- /dev/null
+++ b/test/test_helper.bash
@@ -0,0 +1,12 @@
+teardown() {
+ rm -rf .redo/
+
+ # remove all helper files
+ for i in *.bats; do
+ rm -f "${i%%.*}_result"
+ done
+}
+
+setup() {
+ cd "$BATS_TEST_DIRNAME"
+}