Releases: hernancerm/zgold
Releases · hernancerm/zgold
0.5.1
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
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
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 formzgold <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 therun
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
andpatch-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
Features
- Sub-command
list
from the formgold <config-file> <sub-command>
displays test case index. Useful alongside the sub-commandsrun
andexecute
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
0.2.2
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
0.2.0
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
Not thoroughly tested, but seems to work. Have fun and stay safe.