kward/shunit2
View on GitHub ↗ ★ 1,742 Shell
shUnit2 is a xUnit based unit test framework for Bourne based shell scripts.
6 mentions on Hacker News by 5 people: 0 stories, 6 comments · first 2020-02-15 · latest 2024-07-04
20082026
-
…if you want to write portable test suites that target many shells: - https://github.com/shellspec - https://github.com/kward/shunit2
comment by alganet · 2024-07-04 · in Show HN: Multiple shell versions for testing portable shell scripts -
> or something that would proper unit testing < https://github.com/kward/shunit2 >
comment by teddyh · 2023-08-09 · in Pure Bash Bible (2018) -
…let me write some pretty long (~1k loc) bash programs that work. Yes, you should test your bash. https://github.com/kward/shunit2
comment by exdsq · 2021-03-18 · in ShellCheck: A static analysis tool for shell scripts -
Shunit2 as well https://github.com/kward/shunit2
comment by justinholmes · 2021-03-02 · in Bash_unit – bash unit testing framework -
…- Use shellcheck (static analysis/linter) https://www.shellcheck.net/ - Use shunit2 (unit tests) https://github.com/kward/shunit2 - Use 'local' or 'readonly' to annotate your variables - Trap ctrl+c to gracefully exit (details here…
comment by exdsq · 2020-10-10 · in Bash Error Handling -
How might one compare/contast critic.sh against the following? * https://github.com/djui/bashunit * https://github.com/kward/shunit2
comment by rubicks · 2020-02-15 · in Show HN: Critic.sh – Simple testing framework for Bash