diff --git a/urchin b/urchin index fd11163..737a0c4 100755 --- a/urchin +++ b/urchin @@ -88,7 +88,8 @@ recurse() { else result=not\ ok fi - echo "${result} - ${potential_test}" + n=$(grep -ce '^\(?:not \)\?ok' "$logfile") + echo "${result} $((n + 1)) - ${potential_test}" | tee --append "$logfile" else indent $indent_level if [ $exit_code -eq 0 ] @@ -176,8 +177,10 @@ urchin_go() { finish=$(date +%s) elapsed=$(($finish - $start)) + + if $tap_format; then - sleep 0s + echo "# Took $elapsed $(plural second $elapsed)." else echo "Done, took $elapsed $(plural second $elapsed)." set -- $(grep -e 'passed$' "$logfile"|wc -l) $(grep -e 'failed$' "$logfile"|wc -l)