Improve test coverage

This commit is contained in:
Peter Wilmott
2015-07-23 17:56:51 +01:00
parent 39ebf616c4
commit 6e6ee2d3b2
12 changed files with 103 additions and 16 deletions

15
test Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
exit_code=0
for t in tests/test_*; do
bash tests/teardown > /dev/null 2>&1
bash "$t" > /dev/null 2>&1
if [[ $? == 0 ]]; then
echo -e "\e[1;32mPASSED\e[0m : $t"
else
echo -e "\e[1;31mFAILED\e[0m : $t"
exit_code=1
fi
bash tests/teardown > /dev/null 2>&1
done
exit "$exit_code"

View File

@@ -1,2 +0,0 @@
#!/usr/bin/env bash
[ "$(wc -l < bocker)" -le 100 ]