Merge pull request #44 from molovo/version-0.5.x

v0.5.1
This commit is contained in:
James Dinsdale 2017-02-20 13:24:23 +00:00 committed by GitHub
commit d78c1bbe60

15
zunit
View file

@ -1112,6 +1112,12 @@ function _zunit_run() {
local fail_fast tap allow_risky
local output_text logfile_text output_html logfile_html
# Print version information
echo $(color yellow 'Launching ZUnit')
echo "ZUnit: $(_zunit_version)"
echo "ZSH: $(zsh --version)"
echo
zmodload zsh/datetime
local start_time=$((EPOCHREALTIME*1000)) end_time
@ -1204,6 +1210,13 @@ function _zunit_run() {
[[ $(( $passed + $skipped )) -eq $total ]]
}
###
# Output the version number
###
function _zunit_version() {
echo '0.5.1'
}
###
# The main zunit process
###
@ -1246,7 +1259,7 @@ function _zunit() {
# If the version option is passed,
# output version information and exit
if [[ -n $version ]]; then
echo '0.5.0'
_zunit_version
exit 0
fi