shpec icon indicating copy to clipboard operation
shpec copied to clipboard

Test your shell scripts!

Results 20 shpec issues
Sort by recently updated
recently updated
newest added

The project probably lives at https://github.com/eradman/entr/ - although I haven't verified it is actually the same.

The "Using shpec" section of README.md has the following sentence: "If you'd like your tests to run automatically when they change, we recommend the entr utility". The "entr" is a...

#### STR: 1. Create a shpec test file that enables bash exit on error (`set -e` at the top of the file) 2. Add a test like: ```bash it "foo"...

In windows environment (git-bash), the following command: `command -v "$0"` returns empty string. Therefor the `$_main` function is never called. So preventing any further checks, just calling the function with...

To reproduce: ``` set -u describe "foobar" it "maybe succeeds" assert equal true false end end ``` This leads to an internal failure: ``` foobar maybe succeeds /usr/local/bin/shpec: line 137:...

Hi, i'm currently using custom matchers for greater then or equal and less than or equal in lots of projects. In my opinion they should be in the standard matcher...

Thanks @rylnd for this awesome project! Any thoughts on how to implement skipped tests?

enhancement
in progress

So @twopoint718 actually suggested this: use trap to be able to capture and keep track of signals sent by something running inside an assertion. http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_12_02.html

enhancement

Currently, the default tests for shpec in `shpec_shpec.sh` use hardcoded temporary files. This can cause strange effects on systems where these filenames have been used before, whether by the same...

enhancement

trying to run with fish fails with: fish_1 | Failed to execute process '/usr/local/bin/shpec'. Reason: fish_1 | exec: unknown error (errno was 8) fish_1 | The file '/usr/local/bin/shpec' is marked...