simple tool for bash script unit test
Usage
Put test scripts in a folder, then run:
BU_TESTS_PATH="path/of/folder/to/place/tests" /path/to/bu/bu_test.sh
functions
bu_assert
bu_assert "function or command to call" "expected result"
bu_assert "function or command to call" "expected result" "self defined error message"
bu_assert_return
bu_assert_return "function or command to call" "expected exit code / return code"
bu_assert_return "function or command to call" "expected exit code / return code" "self defined error message"
bu_todo_assert
bu_todo_assert "function or command to call, but not implmented or not finished yet" "expected result"
bu_todo_assert_return
bu_todo_assert_return "function or command to call, but not implmented or not finished yet" "expected exit code / return code"