Skip to content

Releases: hernancerm/zgold

0.5.1

06 Jan 05:16
Compare
Choose a tag to compare

0.5.1

2025-01-06

Bug fixes

  • Never use a pager for delta's output. This fixes test execution pausing on long diffs.

Full Changelog: 0.5.0...0.5.1

0.5.0

06 Jan 01:59
Compare
Choose a tag to compare

0.5.0

2025-01-06

Features

  • ANSI-colored header/footer.
  • Output format mirroring ZUnit.
  • Hint on slow test cases, like ZUnit does (gray fg color on test case name while the test is running).
  • Show command ran on failed test cases.

Bug fixes

  • Exit codes should now make sense.
  • Do not use delta when stdout does not refer to a terminal.

Docs

  • DEVELOP.md: Update definitions of iarray, ciarray, aarray and caarray.
  • DEVELOP.md: Add Zsh recipes.

Full Changelog: 0.4.0...0.5.0

0.4.0

04 Jan 02:26
Compare
Choose a tag to compare

Changelog

[0.4.0] - 2025-01-04

🚀 Features

  • [breaking] The config file param test_cases is now an associative array. Keys are test case names, values are commands.
  • Accept a dir as the config file. In this case, the config file is assumed to be config.zsh within the dir.
  • Set run as the default sub-command for the form zgold <config-file> [<sub-command>].
  • The config file now accepts an optional associative array parameter pre_diff_hooks.
  • Exit with proper exit codes. The exit code is the total of failed test cases.
  • Option -d <dir...> to execute the run sub-command on each dir.

🐛 Bug Fixes

  • Create golden file if it does not exist.

💼 Other

  • Makefile over shell script.
  • Compile on install using zcompile.

🚜 Refactor

  • [breaking] Drop sub-commands run-all and patch-all.

📚 Documentation

  • Small README update.
  • Cleanup Markdown docs.
  • (develop.md) Add guidelines.
  • (--help) Default sub-command.

🧪 Testing

  • Flatten test dir structure.

Full Changelog: 0.3.0...0.4.0

0.3.0

08 Sep 23:56
Compare
Choose a tag to compare

Features

  • Sub-command list from the form gold <config-file> <sub-command> displays test case index. Useful alongside the sub-commands run and execute which take an index.
  • Pager for delta quits on single screen.

Documentation

  • Write DEVELOP.md
  • Cleanup built-in help message.

Full Changelog: 0.2.3...0.3.0

0.2.3

20 Jul 22:03
Compare
Choose a tag to compare

Changes

Documentation changes.

Full Changelog: 0.2.2...0.2.3

0.2.2

08 Jul 00:18
Compare
Choose a tag to compare

Fixes

  • In 0.2.1 the version given by gold -v was incorrect. Now it's correct.

Full Changelog: 0.2.1...0.2.2

0.2.1

08 Jul 00:06
Compare
Choose a tag to compare

Fixes

  • Fix help message on the version flag.

Full Changelog: 0.2.0...0.2.1

0.2.0

07 Jul 23:01
Compare
Choose a tag to compare

Features

  • Added command execute <test-case-index>: Execute the command corresponding to a test case, by index.
  • Added usage form:
  gold [--version|-v]
    Display the version.

Full Changelog: 0.1.0...0.2.0

0.1.0

07 Jul 19:52
Compare
Choose a tag to compare

Not thoroughly tested, but seems to work. Have fun and stay safe.