An example using this bashunit testing library.
This demo uses bashunit itself as git-submodule inside the tools/bashunit
directory.
-
Install the git submodule
git submodule add [email protected]:TypedDevs/bashunit.git tools/bashunit # (Optional) Update to the latest version git submodule update --remote
-
Run the tests
tools/bashunit/bashunit logic_test.sh
or use from the root directory use the
make
commandmake test/example
If you want to run the test with the watcher you'll need to have installed fswatch and run the following command:
make test/watch/example
Looking for a more "real" example? There you go: