How to install zunit
brew install zunit-zsh/zunit/zunit zunit use case
Run unit tests for Zsh scripts and plugins to ensure code correctness and reliability
When to use zunit
- When developing Zsh plugins or frameworks that need automated testing
- When integrating Zsh code into a CI/CD pipeline with TAP-compatible output
- When writing asynchronous Zsh tests that require a dedicated runner
When not to use zunit
- For testing non-Zsh scripts (e.g., Bash, Python) – use their native frameworks
- When you need a general-purpose test runner for multiple languages
zunit features
- · TAP-compliant output for CI integration
- · Support for asynchronous tests and custom assertions
- · Automatic test discovery with glob patterns
- · Plugin architecture for extending functionality
Want your agent to find this automatically?
Add the MCP server to your agent config and it will discover tools like zunit on its own.
Set up MCP →