|
|
|
|
|
by orestes910
2671 days ago
|
|
Outside of the scope of elaborate CI pipelines, I wonder how useful this can really be. Big CI pipelines are one of the few instances where I can think of Bash being both an appropriate choice AND the resulting product being large, elaborate, and sensitive to failure - which would benefit from being tested. Most other applications of Bash are generally just so simple that fundamentally altering how you write scripts ("Bash scripts must also be broken down into multiple functions, which the main part of the script should call when the script is executed.") for the sake of testing them seems like it could easily fall into the category of over engineering. Beyond the CI pipeline use case, wouldn't the tools in which this would actually be properly useful be better off written in a proper programming language? |
|
A year or two ago, Arch Linux migrated the tests for dbscripts (the server-side of how package releases happen) from shUnit2 to BATS. https://git.archlinux.org/dbscripts.git/