kward/shunit2
shUnit2 is a xUnit based unit test framework for Bourne based shell scripts. observed · 2026-08-28
Health v2 · maintenance only
55/100
- Activity 72
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4086
- days_rel: n/a
- days_push: 171
- n_releases_24m: 0
Adoption not part of the score
1737 stars · 202 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
shUnit2 is a xUnit-style unit test framework for Bourne-based shell scripts, modeled after JUnit and PyUnit. It lets developers write and run assertions-based tests for shell scripts across many shells and operating systems.
Use cases
- write unit tests for bash scripts
- test shell scripts across sh, bash, dash, ksh, zsh
- add xUnit-style assertions to shell code
- catch cross-shell portability bugs in scripts
- run shell script tests in CI
When to choose
- you need structured unit tests for shell scripts
- you must support multiple Bourne-family shells and Unix platforms
- you want a lightweight, dependency-free test framework for shell
When to avoid
- you need testing for languages other than shell
- you want modern assertion libraries with mocking or coverage tooling
- your project uses PowerShell or fish shells
Facets
library · maturity stable
testing testing developer-tools cross-platform cli shell-scripting xunit unit-testing bash posix-shell command-line linux macos
1 source
- readme: https://github.com/kward/shunit2 · fetched 2026-08-28 · 8fdf88348ab6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| kward/shunit2 | main | 55 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem