Re:Testing Bash with BATS
by jasonpeacock on Friday February 22, 2019 @03:28PM
(#19228823)
Have you looked at Plumbumm for Python? It handles everything you just mentioned:
https://plumbum.readthedocs.io/en/latest/
There's no reason not to use Python to achieve the same thing, and you get all the benefits of using Python instead of Bash.
I'm sure other languages have similar libraries.
1) calling lots of commands
2) using lots of pipelines
3) handling exit codes from 1 and 2 for error handling and conditional execution control
4) doing job control for processes and process groups (backgrounding, pausing, foregrounding, sending signals, etc.)