Sha256: 349ab4a20e3ae7f84b47080be8ac3c71b9313f4014a2dec8faa81e837e0ebea2

Contents?: true

Size: 424 Bytes

Versions: 8

Compression:

Stored size: 424 Bytes

Contents

class ConsoleOutput
  def add(line)
    puts line
  end
  
  def add_status(status, date, time, time_zone, msg)
    puts "\n" if status == :start     # add a blank line before each test to visually group the output
    puts format(status, date, time, time_zone, msg)
  end
  
  def format(status, date, time, time_zone, msg)
    "#{date} #{time} #{time_zone} #{status.to_s.capitalize}: #{msg}"
  end
  
  def close
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
smart_monkey-0.5.0 lib/ui-auto-monkey/tuneup/test_runner/console_output.rb
smart_monkey-0.4.2 lib/ui-auto-monkey/tuneup/test_runner/console_output.rb
smart_monkey-0.4.1 lib/ui-auto-monkey/tuneup/test_runner/console_output.rb
smart_monkey-0.3 lib/ui-auto-monkey/tuneup/test_runner/console_output.rb
smart_monkey-0.2.1 lib/ui-auto-monkey/tuneup/test_runner/console_output.rb
smart_monkey-0.2 lib/ui-auto-monkey/tuneup/test_runner/console_output.rb
smart_monkey-0.1.2 lib/ui-auto-monkey/tuneup/test_runner/console_output.rb
smart_monkey-0.1 lib/ui-auto-monkey/tuneup/test_runner/console_output.rb