SkillAgentSearch skills...

Shellspec

A full-featured BDD unit testing framework for bash, ksh, zsh, dash and all POSIX shells

Install / Use

/learn @shellspec/Shellspec

README

ShellSpec: full-featured BDD unit testing framework

ShellSpec is a full-featured BDD unit testing framework for dash, bash, ksh, zsh and all POSIX shells that provides first-class features such as code coverage, mocking, parameterized test, parallel execution and more. It was developed as a dev/test tool for cross-platform shell scripts and shell script libraries. ShellSpec is a new modern testing framework released in 2019, but it's already stable enough. With lots of practical CLI features and simple yet powerful syntax, it provides you with a fun shell script test environment.

Ubuntu macOS FreeBSD NetBSD OpenBSD DragonFlyBSD Solaris11<br> gitbash cygwin msys busybox<br> CodeFactor Grade Code Climate Codecov Kcov Docker Cloud Automated build GitHub top language GitHub release License<br> bash bosh busybox dash ksh mksh posh yash zsh


Version 0.28.0 has a lot of enhancements in the CLI. It is basically compatible, but there are some changes that you need to be aware of. See Migration Guide to Version 0.28.0 for details.


Thank you for your interest in ShellSpec. Please visit 🚩the official website to know the impressive features!

Let's have fun testing your shell scripts! (Try Online Demo on your browser).

demo

Coverage report

Latest Update.

See CHANGELOG.md

NOTE: This documentation contains unreleased features. Check them in the changelog.


Table of Contents <!-- omit in toc -->

View on GitHub
GitHub Stars1.4k
CategoryDevelopment
Updated1d ago
Forks76

Languages

Shell

Security Score

100/100

Audited on Mar 28, 2026

No findings