Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.18 KB

README.md

File metadata and controls

36 lines (28 loc) · 1.18 KB

bashunit example

An example using this bashunit testing library.

Demo usage

This demo uses bashunit itself as git-submodule inside the tools/bashunit directory.

  1. Install the git submodule

    git submodule add [email protected]:TypedDevs/bashunit.git tools/bashunit
    # (Optional) Update to the latest version
    git submodule update --remote
  2. Run the tests

    tools/bashunit/bashunit logic_test.sh
    Demo using the bashunit from different paths

    or use from the root directory use the make command

    make test/example
    Demo using the bashunit from different paths

    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

Real example

Looking for a more "real" example? There you go: