Postsread more
On Bash Testing: Design, Not Just Safety
Testing as a topic is a minefield already when it comes to full-fledged programming languages, let’s not even talk about it for shell scripting.
Or shall we?
You see, whether you write software to test other software, or you just fire up a script from the command line and keep running it over and over again until you nail it, that’s still testing, right?
Have you ever been woken up at night because a script failed six months after you wrote it? Or one year later? Or five years later? — For the love of my life, that thing was supposed to be temporary! There’s nothing more permanent than a temporary solution, they say.