Does shunit2 can unit test bash script?
haifenghuang opened this issue · comments
HuangHaiFeng commented
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?
William Desportes commented
You can check out this repository as an example: https://github.com/williamdes/sql-backup/blob/main/tests.sh
HuangHaiFeng commented
Thanks a lot, I'll have a look.