testing-in-bash
shunit2
testing-in-bash | shunit2 | |
---|---|---|
1 | 4 | |
121 | 1,554 | |
- | - | |
6.4 | 3.5 | |
27 days ago | 3 months ago | |
Shell | Shell | |
GNU General Public License v3.0 only | 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.
testing-in-bash
shunit2
-
Pure Bash Bible
> or something that would proper unit testing
<https://github.com/kward/shunit2>
-
First time writing bash scripts for work, not sure if this is true elsewhere
https://github.com/kward/shunit2 is your friend here.
-
AWK an old-school tool today
And in case you are thinking how powerful this is and like me trying to take it further to create small AWK powered "apps" to do the monotonous tasks while wondering how can you verify if what you are coding is valid, you can execute any number of unit tests for shell scripts, and therefore, AWK scripts using shunit2
-
ShellCheck: A static analysis tool for shell scripts
Alongside ShellCheck, I also use shUnit2 as my unit testing framework. Yes, you should test your bash.
https://github.com/kward/shunit2
What are some alternatives?
bish - Bish is a language that compiles to Bash. It's designed to give shell scripting a more comfortable and modern feel.
bats-core - Bash Automated Testing System
shellmath - Yes, Virginia, you can do floating-point arithmetic in Bash!
shellspec - A full-featured BDD unit testing framework for bash, ksh, zsh, dash and all POSIX shells
ShellCheck - ShellCheck, a static analysis tool for shell scripts
sh - A shell parser, formatter, and interpreter with bash support; includes shfmt
pure-sh-bible - 📖 A collection of pure POSIX sh alternatives to external processes.
shellharden - The corrective bash syntax highlighter
babashka - Native, fast starting Clojure interpreter for scripting
etc - Things that are too small to keep in a separate repo, but too important not to version them.