A full-featured BDD unit testing framework for bash, ksh, zsh, dash and all POSIX shells
BeforeEach
/ AfterEach
as synonym for Before
/ After
.FORCE_COLOR
environment variable.--tmpdir
option.--execdir
option to specify the directory for specfile execution.-c
(--chdir
) and -C
(--directory
) options to change directory at startup.*/
and **/
) and -L
(--dereference
) option to match recursive directories.--helperdir
to specify the location of spec_helper
etc.SHELLSPEC_HELPERDIR
to indicate the location of spec_helper
etc.--reportdir
and --covdir
options.-O
(--option
) option.-I
(--load-path
) option.<module>_precheck
callback and some helper functions to spec_helper
for pre-checking.<module>_loaded
callback to be called after spec_helper
loading.--keep-tempdir
with --keep-tmpdir
.--pattern
.-D
option has been deprecated (Replace with the --default-path
option).SHELLSPEC_SPECDIR
has been deprecated since there is not always a single directory for specfiles..shellspec-profiler.log
to profiler.log
for profiler log.banner.md
as a banner fileInclude
and import
(shellspec_import
) can now pass arguments.SHELLSPEC_REQUIRES
has been changed from :
to space.--kcov-common-options
option.run script
could not get the exit status.be exported
and be readonly
matchers.
%printf
and %sleep
directives.TODO
and SKIP
directives.Bail out!
on error.BeforeAll
/ AfterAll
: Avoid crashes due to hook errors.Before
/ After
: Improved hook error handling.BeforeCall
/ AfterCall
, BeforeRun
/ AfterRun
: Minor changes.NO_COLOR
environment variable.Assert
expectation to assert side effects of system environment.
Dump
helper - dump stdout, stderr and status for debugging.line
and word
subject. (of stdout (output)
can be omitted now)--log-file
option to specify log file for %logger
and trace.--xtrace
(--xtrace-only
) feature.
shellspec/kcov
docker image.echo
in specfile.result
modifier and satisfy
matcher.-r
option is now a short option for --repair
, not --require
.