News for hackers. Stuff that matters.
Re:Bash_unit – bash unit testing framework by jascii on Tuesday March 02, 2021 @01:00PM (#26318199)
On one hand, like a lot of posters are saying, maybe use another language if it gets complicated enough to require unit testing.

On the other hand, a lot of the stuff that gets written in bash is quite mission critical, so increasing test coverage is a good thing!

Re:Bash_unit – bash unit testing framework by pdkl95 on Tuesday March 02, 2021 @01:58PM (#26318955)
On the 3rd hand, a major aspect of the 'engineering' part of being a 'software engineer' is learning how to choose which side of various tradeoffs is appropriate for a project. Should we perform the expensive computation on demand at runtime, or is trading time for space with a lookup table more appropriate? Is the task simple enough for a basic 'glue language' like bash, or does it require a full-featured language like ruby or python?

Regardless, as you pointed out, regardless of the language some sort of testing is still a good idea. Even small, supposedly 'trivial' scripts deserve some testing!