Skip to content

Releases: zunit-zsh/zunit

v0.8.2

04 Jan 23:32
Compare
Choose a tag to compare

Enhancements

  • The zunit init command now skips files which already exist and prints a warning, rather than exiting with an error. (#89)

Bugfixes

  • Prevents false-positives from occurring when empty values are passed into some assertion functions. (#90)

v0.8.1

11 Jul 19:29
Compare
Choose a tag to compare

Enhancements

  • Allow a space in the ZUnit shebang (#77)
  • Add contains and does_not_contain assertion methods (#81)

Bugfixes

  • Stop output from @setup and @teardown methods from being suppressed (#80)

v0.8.0

03 Jul 23:18
Compare
Choose a tag to compare

Features

  • Add pass, fail and error functions for use in tests (#74)
  • Add is_positive, is_negative, is_greater_than and is_less_than assertion methods (#75)
  • Add is_substring_of and is_not_substring_of assertion functions (#64)
  • Add --verbose option to print full test output to stdout (#65)

Enhancements

Bugfixes

  • Fix time output at end of tests (#66)

Chores

  • Tweak .travis.yml to improve CI build times (#68)
  • Repository migrated from molovo/zunit to zunit-zsh/zunit

v0.7.0

27 Mar 11:36
Compare
Choose a tag to compare

Features

  • Adds --time-limit CLI option, to override time_limit setting in .zunit.yml. (#57)
  • Adds allow_risky setting in .zunit.yml, which is overridden by --allow-risky option. (#55)
  • Adds fail_fast setting in .zunit.yml, which is overridden by --fail-fast option. (#55)

Bugfixes

  • Fix completion script

v0.6.4

09 Mar 12:24
Compare
Choose a tag to compare

Bugfixes

  • Fixes a bug where the wrong exit code was read after parsing a test body, meaning some parsing errors may not have been caught.
  • Ensures the ZUnit version currently being used is printed into the generated .travis.yml when running zunit init --travis

v0.6.3

02 Mar 17:16
v0.6.3
870ede6
Compare
Choose a tag to compare

Bugfixes

  • Fix an incorrectly quoted variable which prevented $lines from being set as an array.

v0.6.2

02 Mar 12:58
v0.6.2
7d34679
Compare
Choose a tag to compare
  • Modify example .travis.yml files to use a specific release rather than building from master

v0.6.1

01 Mar 21:45
0ef3f39
Compare
Choose a tag to compare

Bugfixes

  • Fixes the .travis.yml created by zunit init --travis, as well as the example in the README, so that they will both work with ZUnit v0.6.0+

v0.6.0

01 Mar 21:01
Compare
Choose a tag to compare

Features

  • Adds support for running tests individually. Running:

    zunit /path/to/file@"The name of a test"

    will load that file, but only parse and load the requested test. This is particularly useful when writing slow running tests to avoid running the whole file. (#46)

  • Source code has now been separated into files to make development easier, and is now compiled on install for a speed boost. (#47)

    NOTE: Due to the new compilation step, installation with Zulu will require a manual step until Zulu v1.2.0 is released. See the installation instructions.

  • The indicator for 'skipped' tests is now clearer. (55c35c7)

Bugfixes

  • Fixes some bugs in the run helper which stopped the $lines variable being populated within tests. (862dacc and cc9bbae)
  • Fixes the way @teardown functions are handled to ensure they also run when a test fails or errors. (09ea300)

v0.5.2

22 Feb 22:41
Compare
Choose a tag to compare

Features

Bugfixes

  • A recent commit in v0.5.1 added a version header to test runs, but this also appeared in TAP output, making the output invalid. This has now been fixed. (c0b8b46)