mirror of
https://github.com/p8952/bocker.git
synced 2025-12-29 02:08:28 +01:00
Improve test coverage
This commit is contained in:
15
test
Executable file
15
test
Executable 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"
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
[ "$(wc -l < bocker)" -le 100 ]
|
||||
Reference in New Issue
Block a user