shellspec
shunit2
Our great sponsors
shellspec | shunit2 | |
---|---|---|
6 | 4 | |
1,017 | 1,546 | |
1.0% | - | |
0.0 | 3.5 | |
about 1 year ago | 2 months ago | |
Shell | Shell | |
MIT License | 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.
shellspec
-
[P] Convert Any language to a Linux command (one-liner)
Suggest to look also at ShellSpec
-
Unit test for an installer
I'm thinking to use shellspec to perform the unit testing on Linux boxes, already for the file configuration.
- ShellSpec – A full-featured BDD unit testing framework for dash, bash, ksh, zsh
- ShellSpec: A unit testing framework for shells
-
Bash_unit – bash unit testing framework
If you fancy more BDD-style testing with a Gherkin-like syntax, there is also Shellspec https://shellspec.info / https://github.com/shellspec/shellspec
-
[POSIX] How to Implement --args and How Should Usage Be Formatted
I am developing a testing framework for POSIX compliant shells that has over than 60 options. Since, It is for testing shell scripts, it makes sense to implement it in a shell script, even if it is complex.
shunit2
-
Pure Bash Bible
> or something that would proper unit testing
-
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.
What are some alternatives?
bashcov - Code coverage tool for Bash
bats-core - Bash Automated Testing System
bash-oo-framework - Bash Infinity is a modern standard library / framework / boilerplate for Bash
ShellCheck - ShellCheck, a static analysis tool for shell scripts
getoptions - An elegant option/argument parser for shell scripts (full support for bash and all POSIX shells)
sh - A shell parser, formatter, and interpreter with bash support; includes shfmt
Installomator - Installation script to deploy standard software on Macs
shellharden - The corrective bash syntax highlighter
bash_unit - bash unit testing enterprise edition framework for professionals
etc - Things that are too small to keep in a separate repo, but too important not to version them.
shc - Shell script compiler
spdk - Storage Performance Development Kit