shunit2
shellmath
shunit2 | shellmath | |
---|---|---|
4 | 4 | |
1,549 | 34 | |
- | - | |
3.5 | 4.0 | |
3 months ago | 7 months ago | |
Shell | Shell | |
Apache License 2.0 | GNU General Public License v3.0 or later |
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
shellmath
-
Pure Bash Bible
There was a really awful and amazing floating point implementation posted here¹ a couple of years ago, with a few interesting comments too². I remember it in part because I was surprised there wasn't more discussion.
¹ https://github.com/clarity20/shellmath
² https://news.ycombinator.com/item?id=26250743
- Show HN: Shellmath: Floating-point arithmetic directly in bash
What are some alternatives?
bats-core - Bash Automated Testing System
testing-in-bash - Bash test framework comparison
shellspec - A full-featured BDD unit testing framework for bash, ksh, zsh, dash and all POSIX shells
calc.plugin.zsh - zsh calculator - with support for basic math
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
etc - Things that are too small to keep in a separate repo, but too important not to version them.
spdk - Storage Performance Development Kit
bish - Bish is a language that compiles to Bash. It's designed to give shell scripting a more comfortable and modern feel.
hadolint - Dockerfile linter, validate inline bash, written in Haskell