diff --git a/lib/quickdraw/runner.rb b/lib/quickdraw/runner.rb index b5e025a..720e23d 100644 --- a/lib/quickdraw/runner.rb +++ b/lib/quickdraw/runner.rb @@ -209,7 +209,7 @@ def supervise(worker) end if console - progress = (@cursor * 100.0 / tests_length) + progress = @cursor >= tests_length ? 100.0 : (@cursor * 100.0 / tests_length) print "\r\e[K#{'█' * (progress * bar_width / 100.0).floor}#{'░' * (bar_width - (progress * bar_width / 100.0).floor)} #{progress.round}%" end when Message::Stopping