Exercise: Make It Fail Well
Exercise: Make It Fail Well: Exercise: Make It Fail Well.
Updated
- Exercise: Make It Fail Well (Journeyman): Turn a photo mover that works only on a good day into one you can trust: strict mode, a die function, a usage message, errors on standard error, exit codes that mean something, cleanup with trap, a bug found with bash -x, and two bats tests of your own, while a check script runs it job by job.