3 ms·
All these recommendation are excellent (except omitting the necessary obsessive quoting of all variables everywhere (just in case they contain a space). I've b
by falsedan 11y 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 https://github.com/sstephenson/bats
- voltagex_ 11y agoBATS looks great, but it might not be maintained any more: https://github.com/sstephenson/bats/issues https://github.com/sstephenson/bats/issues
- lisivka 11y agoWhy BATS? Why not something *unit-like? Example: https://github.com/vlisivka/bash-modules/blob/master/main/bash-modules/test/test_arguments.sh https://github.com/vlisivka/bash-modules/blob/master/main/ba... .
- falsedan 11y agoTAP output is killer, plus I prefer to write my tests in bash -e, not Java thanks.