bashunit
Bash script testing with assertions, mocks, and snapshots
All Skills in This Repository (5)
Pure Emerald Level Indicatorscheck-coverage
Identify untested code paths and generate a coverage report for Bash projects.
pre-release
Automate pre-release validation for bashunit releases with version, test, and documentation checks.
tdd-cycle
Automate red-green-refactor TDD cycles with task-file and test-pattern references.
add-assertion
Create Bash assertion functions in bashunit using TDD cycles.
fix-test
Diagnose and repair failing Bash tests with a structured debugging workflow.
Frequently Asked Questions
FAQPage SchemaHow to install bashunit?โผ
Run `npx skills add TypedDevs/bashunit --all -g -y` in your terminal to install all skills in this suite globally.
How to test Bash scripts automatically?โผ
Write test functions using bashunit's assertions like assert_equals, then run `./bashunit tests/` to execute the full suite with clear pass/fail output.
Does bashunit work on macOS default Bash?โผ
Yes. bashunit is fully compatible with Bash 3.0+, including the older Bash 3.2 that ships by default on macOS.
Can bashunit mock functions in shell tests?โผ
Yes. It includes test doubles such as spies and mocks, letting you verify how many times a function was called and isolate dependencies.
Can I use bashunit without coding experience?โผ
Basic shell knowledge helps, but your AI agent can write and run the tests for you based on plain-English descriptions of what to verify.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core