bats-zsh

Plugin enabling Bats to test Zsh scripts

CC0-1.0 License

Downloads
5
Stars
2
Committers
1

Bot releases are hidden (Show)

bats-zsh - v1.2.1 Latest Release

Published by targendaz2 over 1 year ago

Changed

  • The zsource cache path is no longer passed to zsh_wrapper.sh.
  • zsh_wrapper.sh generates the cache path on its own.
  • zrun supports the full range of expected return codes supported by run.
bats-zsh - v1.2.0

Published by targendaz2 over 1 year ago

Added

  • zset command. Used to set variables called by the functions called by zrun.

Changed

  • Added zset command and examples to the readme.

Fixed

  • zrun tests now use assert_output to test command output.
bats-zsh - v1.1.0

Published by targendaz2 over 1 year ago

Added

  • Multiple files can be sourced with zsource.

Changed

  • zsource uses a temporary file instead of an environment variable.
bats-zsh - v1.0.2

Published by targendaz2 over 1 year ago

Added

  • zsource and zrun commands output descriptive errors

Fixed

  • zrun tests no longer use run (i.e. run was called inside itself)
bats-zsh - v1.0.1

Published by targendaz2 over 1 year ago

Added

  • zrun accepts the -127 argument from run

Fixed

  • zrun calls run internally
  • zrun no longer specifically checks arg 1, zsource, or the zsh_wrapper.sh path
bats-zsh - v1.0.0

Published by targendaz2 over 1 year ago

Added

  • Source zsh files with zsource.
  • Run functions from the sourced zsh file with zrun.