# shellspec

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

Canonical page: https://www.reposhelf.co.uk/projects/github/shellspec/shellspec.html

- Project ID: shellspec/shellspec
- Source: GitHub
- Original project: https://github.com/shellspec/shellspec
- Description attribution: project author metadata
- Categories: Developer tools
- Technologies: Not recorded
- Licence: MIT
- Repository availability checked: 2026-11-20T13:36:34.635Z
- Demo page loaded: 2026-11-20T19:34:24.582Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> 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.

> &amp;style=flat-square\) &amp;style=flat-square\) &amp;style=flat-square\) &amp;style=flat-square\)

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

- It will be executed in the shell specified by the shebang not the shell running the specfile.
- The coverage of the shell script will not be measured.
- Cannot refer to variables inside the shell script.
- Shell built-in commands cannot be mocked.
- Functions defined inside the shell script cannot be mocked.

## Author-documented requirements and audience

> 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.



- Account — Required: The environment variable SHELL is the user login shell, not the currently running shell.

Not recorded: External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/shellspec/shellspec/blob/master/README.md

Extraction checked: 2026-11-01T01:10:52.839Z

Last recorded source update: 2025-11-24T18:57:18.000Z

Saved release: 0.28.1 — 2021-01-11T05:58:16.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=shellspec%2Fshellspec). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
