Hacker News new | ask | show | jobs
by falsedan 3845 days ago
All these recommendation are excellent (except omitting the necessary obsessive quoting of all variables everywhere (just in case they contain a space).

I've been enjoying BATS [0] for my bash testing.

[1] https://github.com/sstephenson/bats

2 comments

Why BATS? Why not something *unit-like? Example: https://github.com/vlisivka/bash-modules/blob/master/main/ba... .
TAP output is killer, plus I prefer to write my tests in bash -e, not Java thanks.
BATS looks great, but it might not be maintained any more: https://github.com/sstephenson/bats/issues