shellspec
shellspec copied to clipboard
A full-featured BDD unit testing framework for bash, ksh, zsh, dash and all POSIX shells
When I run the following spec file with `shellspec -c . -F` I see that both hooks run even though a single group has focus. Is this intentional? Is there...
Hello, I try to use the profile option, but the formatter get no proper data. ``` # shellspec --profile spec/em_spec.sh Running: /bin/bash [bash 5.1.4(1)-release] ............/lib/shellspec/lib/general.sh: line 538: * 10: syntax...
How do I go about defining a command-based mock that can be shared between `*_spec.sh` files?
The current directory during translated is not correct. ```console $ shellspec --execdir @basedir "**/spec" Running: /bin/sh [sh] ... Finished in 0.18 seconds (user 0.03 seconds, sys 0.12 seconds) 3 examples,...
I wrote following examples to test a trailing empty line. ```sh Describe "Demo" trailing_empty_line() { printf "1\n2\n\n" } It "Last empty line is not counted" When call trailing_empty_line The lines...
In [`spec/install_spec.sh`](https://github.com/shellspec/shellspec/tree/0.28.1/spec/install_spec.sh) the [`fetch()`](https://github.com/shellspec/shellspec/blob/0.28.1/spec/install_spec.sh#L113-L165) testcase always fails due to http://repo.test/b3d5591.tar.gz not existing. Am I missing something? Currently I'm simply dropping the entire testcase with a patch to make the testsuite...
I apologize for the recent slowdown in ShellSpec development. Due to personal priorities, other development and article writing related to shell scripts has taken precedence, and I have not been...
`DESTDIR` is a standard variable defined by most Linux distributions while building Makefile packages and is expected to point to the "fake" package root directory. Without this the installed files...
This PR is a modification for the sample code, not to the ShellSpec itself. I fixed two bugs that are like typo. One of the modification is to Issue #236....