Shell
You're viewing a free preview. Sign in free to read every script.
Why this exists Shell scripts often run with high privileges and rarely have tests, which is a poor combination. Two free tools change that. ShellCheck reads a script and points out mistakes (unquoted variables, wrong…
Testing Shell Scripts: ShellCheck, bats and Running Them in CI
Catch common bugs automatically with ShellCheck, structure a script so functions can be tested, write bats tests with setup and assertions, and run both in a Jenkins stage so a broken script fails the build.
Sign in free to read this script, along with the rest of the library.
Sign in free