bach
bash_shell_mock
bach | bash_shell_mock | |
---|---|---|
1 | 1 | |
545 | 61 | |
0.6% | - | |
6.7 | 1.9 | |
4 months ago | over 2 years ago | |
Shell | Shell | |
GNU General Public License v3.0 or later | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bach
-
Shellcheck finds bugs in your shell scripts
I also recommend https://github.com/bach-sh/bach when you have to use Bash for things long enough it probably shouldn't be!
bash_shell_mock
-
Getting Started with Bash Testing with Bats
I won't add mocking capabilities to our example project here, but I would like to give a short overview on how you can add Mocking to your Bats tests. For my git-auto-commit project I've used Shellmock for a period of time, to mock all calls to git. (In hindsight, that was a mistake. Full story can be read here).
What are some alternatives?
shh - Simple shell like scripting from Haskell
shell-intune-samples - Sample shell scripts for Intune admins.
tbd - Tests your programs.
git-auto-commit-action - Automatically commit and push changed files back to GitHub with this GitHub Action for the 80% use case.
shellspec - A full-featured BDD unit testing framework for bash, ksh, zsh, dash and all POSIX shells
bashunit - Test your bash scripts in the fastest and simplest way, discover the most modern bash testing framework.
strictbash - Enable Bash "strict mode" & run shellcheck via a shebang
bats-core - Bash Automated Testing System
fetchurls - A bash script to spider a site, follow links, and fetch urls (with built-in filtering) into a generated text file.
getting-started-with-bash-testing - Example Bash Project to get started with testing with Bats.
android-get-saved-wifi-passwords - Bash Script To Retrieve Saved Wi-Fi Passwords On Rooted Android Devices
bats-assert - Common assertions for Bats