View on GitHub

ShellSpec demo

BDD unit testing framework for bash, zsh, dash and all POSIX shell scripts with coverage reporting

Run the following command.

# Step 1. Install ShellSpec

. setup.sh

# Step 2. Run ShellSpec

shellspec

Do you want to see or edit the code in a browser? Open in Repl.it.

$ tree
.
|-- fizzbuzz.sh
|-- lib
|   `-- array.sh
`-- spec
    |-- fizzbuzz_spec.sh
    |-- array_spec.sh
    |-- system_spec.sh
    `-- spec_helper.sh

Demo running on Docker also available.

# How to run

docker run --rm -it shellspec/demo