For actually _testing_ the scripts or its functions, I recommend ShellSpec
https://github.com/shellspec