Re:I got tired of PHP and Perl, so I tried bash
by mstade on Saturday April 13, 2019 @04:24AM
(#19651750)
Actually, my experience with bats is that it forces you to modularize and keep things small. Easier to test things that way. Bats is truly an indispensable tool when doing shell scripting – I even use it to test CLIs built in other languages too!
I'd fear though that having BATS would just increase the tendency to let a bash script grow from 50 lines through to 200, when it should've just been ported to Python at 100.