What is “shunit2” Package?

xUnit unit testing framework for Bourne-based shell scripts
For more details: https://github.com/kward/shunit2

Installation

  • Open Terminal by pressing command+space then type terminal and hit Enter key.
  • Install homebrew first.
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  • Install shunit2.
    brew install shunit2

Now, use shunit2!