shunit2
testing-in-bash
shunit2 | testing-in-bash | |
---|---|---|
4 | 1 | |
1,549 | 119 | |
- | - | |
3.5 | 6.4 | |
3 months ago | 7 days ago | |
Shell | Shell | |
Apache License 2.0 | GNU General Public License v3.0 only |
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.
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
testing-in-bash
What are some alternatives?
bats-core - Bash Automated Testing System
bish - Bish is a language that compiles to Bash. It's designed to give shell scripting a more comfortable and modern feel.
shellspec - A full-featured BDD unit testing framework for bash, ksh, zsh, dash and all POSIX shells
shellmath - Yes, Virginia, you can do floating-point arithmetic in Bash!
ShellCheck - ShellCheck, a static analysis tool for shell scripts
sh - A shell parser, formatter, and interpreter with bash support; includes shfmt
shellharden - The corrective bash syntax highlighter
pure-sh-bible - 📖 A collection of pure POSIX sh alternatives to external processes.
etc - Things that are too small to keep in a separate repo, but too important not to version them.
babashka - Native, fast starting Clojure interpreter for scripting