Method: Tokyo#progress
- Defined in:
- lib/tokyo/run.rb
#progress ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/tokyo/run.rb', line 3 def progress @progress ||= TTY::ProgressBar.new ':current of :total [:bar]' do |cfg| cfg.total = units.map {|u| u.tests.size}.reduce(:+) || 0 cfg.width = TTY::Screen.width cfg.complete = '.' end end |