Releases: shellspec/shellspec
Releases · shellspec/shellspec
0.28.1
Changed
- Improved documentation. Thanks to Yohei Kawahara (#173).
Fixed
- bash: Fixed an unexpected error message in self-executable specfile.
- Fixed a bug that test command cannot redefine when using "when run source"
- Fixed a bug when specified relative tmp directory path.
- Fixed option parsing
latest
This tag points to the latest release.
- shellspec-dist.tar.gz - Latest distribution archive
0.28.0
Added
- Added
BeforeEach
/AfterEach
as synonym forBefore
/After
. - Added
FORCE_COLOR
environment variable. - Added
--tmpdir
option. - Added
--execdir
option to specify the directory for specfile execution. - Added
-c
(--chdir
) and-C
(--directory
) options to change directory at startup. - Added path syntax (
*/
and**/
) and-L
(--dereference
) option to match recursive directories. - Added
--helperdir
to specify the location ofspec_helper
etc. - Added the environment variable
SHELLSPEC_HELPERDIR
to indicate the location ofspec_helper
etc. - Added
--reportdir
and--covdir
options. - Added
-O
(--option
) option. - Added
-I
(--load-path
) option. - Added
<module>_precheck
callback and some helper functions tospec_helper
for pre-checking. - Added
<module>_loaded
callback to be called afterspec_helper
loading.
Changed
- Replaced with a new option parser getoptions which supports the standard option syntax.
- Replaced
--keep-tempdir
with--keep-tmpdir
. - Specifying a file in the shellspec's argument is now ignored if it does not match
--pattern
. - Filled in system-out and system-err in junit xml.
- Allowed run the tests from any subdirectory.
- The
-D
option has been deprecated (Replace with the--default-path
option). - The environment variable
SHELLSPEC_SPECDIR
has been deprecated since there is not always a single directory for specfiles. - Rename
.shellspec-profiler.log
toprofiler.log
for profiler log. - Accept
banner.md
as a banner file Include
andimport
(shellspec_import
) can now pass arguments.- The delimiter of the environment variable
SHELLSPEC_REQUIRES
has been changed from:
to space. - Improved documentation. Thanks to ldicarlo (#117, #119), Antoni Marcinek (#120, #139), Stuart R. Jefferys (#155), Leon Stafford (#159).
Removed
- Removed
--kcov-common-options
option.
Fixed
- bash 4.1 - 4.3: Fixed a bug that
run script
could not get the exit status. - zsh < 4.2.0: Fixed a bug when extendedglob is enabled.
- Fixed possibility of I/O error in satisfy matcher (GitHub Actions only?).
- Fixed a bug in which zsh on macOS occasionally exits with exit code 147 (SIGCONT).
- Fixed several bugs related to the Windows path for busybox-w32.
- Fixed a bug when using metacharacters for tags.
0.27.2
Fixed
- Fixed a bug that didn't cause an error if there are fixed examples
0.27.1
Removed
- Drop support for posh 0.8.5 due to signal handling broken.
Fixed
- Fixed gray color.
- Fixed broken
--warning-as-failure
. - Fixed a bug that can not CTRL-C with posh.
0.27.0
Added
- Added
be exported
andbe readonly
matchers. - Added
%printf
and%sleep
directives.
Changed
- Improved TAP formatter.
- Supports
TODO
andSKIP
directives. - Use
Bail out!
on error. - Added error details.
- Supports
BeforeAll
/AfterAll
: Avoid crashes due to hook errors.Before
/After
: Improved hook error handling.BeforeCall
/AfterCall
,BeforeRun
/AfterRun
: Minor changes.
Removed
- Drop support for dash 0.5.3 due to unstable bug.
- Drop support for busybox < 1.20.0 due to unstable bug.
Fixed
- Fixed a bug that "Parameter is not set" error in word modifier.
- Fixed a bug that satisfy matcher succeed even syntax error.
- Fixed a bug that can not CTRL-C with parallel execution on zsh.
- shellspec-syntax-check.sh: Some minor bug fixes.
0.26.1
Added
- Added
--docker
option. (EXPERIMENTAL)
0.26.0
Added
- Added
Mock
helper (command-based mock). - Added
%preserve
directive. - Added
--sandbox
,--sandbox-path
option. - Added
--path
option.
Fixed
- Workaround when the Windows version of
sort.exe
is executed.
0.25.0
Added
- Coverage support for zsh and ksh. (#62)
- Respect
NO_COLOR
environment variable. - Support busybox-w32 ash for windows.
- Added
Assert
expectation to assert side effects of system environment. - Added
Dump
helper - dump stdout, stderr and status for debugging. - Added
line
andword
subject. (of stdout (output)
can be omitted now) - Added
--log-file
option to specify log file for%logger
and trace. - Implement
--xtrace
(--xtrace-only
) feature.
Changed
- Upgrade to alpine 3.12 for docker image and officially release
shellspec/kcov
docker image. - Separate a file descriptor for reporting and stdout to able to use
echo
in specfile. - Minor specification change of
result
modifier andsatisfy
matcher. -r
option is now a short option for--repair
, not--require
.- Use [debian/eol(https://hub.docker.com/r/debian/eol/) docker images for old debian tests.
Fixed
- Before/After hooks should not consume stdin data (#82)
0.24.3
Fixed
- Fixes BeforeAll / AfterAll to share states