sharness
Shell library to test your tools like Git does (by felipec)
shellspec
A full-featured BDD unit testing framework for bash, ksh, zsh, dash and all POSIX shells (by shellspec)
sharness | shellspec | |
---|---|---|
2 | 6 | |
374 | 1,017 | |
- | 0.0% | |
6.5 | 0.0 | |
14 days ago | about 1 year ago | |
Shell | Shell | |
GNU General Public License v3.0 only | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
sharness
Posts with mentions or reviews of sharness.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-03-02.
-
Sharness 1.2.0 released
For more information check the Sharness site.
-
Bash_unit – bash unit testing framework
The definition of a unit in the context of this framework doesn't seem to be some internal interface but rather whatever can be expressed externally via the CLI.
Projects that make use of this kind of testing include git[1], Donenfeld's pass[2], and anything else that uses sharness[3].
[1]: https://git.kernel.org/pub/scm/git/git.git/tree/t
[2]: https://git.zx2c4.com/password-store/tree/tests
[3]: https://github.com/chriscool/sharness#projects-using-sharnes...
shellspec
Posts with mentions or reviews of shellspec.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-27.
-
[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.
What are some alternatives?
When comparing sharness and shellspec you can also consider the following projects:
bashcov - Code coverage tool for Bash