Skip to content

Releases: shellspec/shellspec

0.28.1

11 Jan 05:58
0.28.1
Compare
Choose a tag to compare

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

22 Feb 01:24
Compare
Choose a tag to compare

This tag points to the latest release.

0.28.0

05 Jan 14:18
0.28.0
Compare
Choose a tag to compare

Added

  • Added BeforeEach / AfterEach as synonym for Before / 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 of spec_helper etc.
  • Added the environment variable SHELLSPEC_HELPERDIR to indicate the location of spec_helper etc.
  • Added --reportdir and --covdir options.
  • Added -O (--option) option.
  • Added -I (--load-path) option.
  • Added <module>_precheck callback and some helper functions to spec_helper for pre-checking.
  • Added <module>_loaded callback to be called after spec_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 to profiler.log for profiler log.
  • Accept banner.md as a banner file
  • Include and import (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

28 Oct 14:57
0.27.2
Compare
Choose a tag to compare

Fixed

  • Fixed a bug that didn't cause an error if there are fixed examples

0.27.1

30 Sep 14:48
0.27.1
Compare
Choose a tag to compare

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

24 Sep 23:00
0.27.0
Compare
Choose a tag to compare

Added

  • Added be exported and be readonly matchers.
  • Added %printf and %sleep directives.

Changed

  • Improved TAP formatter.
    • Supports TODO and SKIP directives.
    • Use Bail out! on error.
    • Added error details.
  • 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

13 Jul 14:07
0.26.1
Compare
Choose a tag to compare

Added

  • Added --docker option. (EXPERIMENTAL)

0.26.0

12 Jul 15:09
0.26.0
Compare
Choose a tag to compare

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

21 Jun 00:42
0.25.0
Compare
Choose a tag to compare

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 and word 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 and satisfy 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

06 Jun 15:37
0.24.3
Compare
Choose a tag to compare

Fixed

  • Fixes BeforeAll / AfterAll to share states