4 ms·
Alongside ShellCheck, I also use shUnit2 as my unit testing framework. These two combined have let me write some pretty long (~1k loc) bash programs that work.
by exdsq 6y ago
Alongside ShellCheck, I also use shUnit2 as my unit testing framework. These two combined have let me write some pretty long (~1k loc) bash programs that work. Yes, you should test your bash.
https://github.com/kward/shunit2 https://github.com/kward/shunit2
- ducktective 6y agoThere are quite a few unit-testing frameworks for bash. I wonder, have you reviewed and compared them and came to `shunit2`?
- exdsq 6y agoI tried one or two but decided on shUnit2 because it seemed to be the most friendly and familiar. If you have suggestions of alternatives I'd love to hear them!