diff options
author | Tharre <tharre3@gmail.com> | 2015-01-25 20:38:20 +0100 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2015-01-25 20:41:16 +0100 |
commit | 5322817d1c382d5ba377be0080bd4c5da525cd2f (patch) | |
tree | a6053e4c13e72ed29f6441e7626b5d751d79102a /test/test_helper.bash | |
parent | c4a2f0dec7bd7d3f50115bb88467a0841c91d957 (diff) | |
download | redo-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.bash | 12 |
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" +} |