kward / shunit2

shUnit2 is a xUnit based unit test framework for Bourne based shell scripts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does shunit2 can unit test bash script?

haifenghuang opened this issue · comments

As the title said, I've some bash scripts, Can I use shunit2 to test my bash script? If it can, then could you give me some hints
on how to do that unit test?

You can check out this repository as an example: https://github.com/williamdes/sql-backup/blob/main/tests.sh

Thanks a lot, I'll have a look.