Skip to content

an incomplete and simple tool for bash script unit test, as practice ...

License

Notifications You must be signed in to change notification settings

PeterDaveHello/bu

Repository files navigation

bu Build Status

simple tool for bash script unit test

Screenshot

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"

About

an incomplete and simple tool for bash script unit test, as practice ...

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages