Skip to content
zsh-test-runner
GitHub

Exported Variables

VariableTypeDefaultUse
ZTR_PATHstringPath to zsh-test-runnerUseful for passing to subshells. See Logging results to a file
ZTR_RESULTSassociative array( [failed]=0 [passed]=0 [skipped]=0 )The running results

ZTR_RESULTS[failed] is a convenient way to check for 100% pass rate:

% (( ZTR_RESULTS[failed] )) || echo all tests pass