Class: Ekylibre::PluginSystem::Testing::SpecReporter

Inherits:
Minitest::Reporters::SpecReporter
  • Object
show all
Defined in:
lib/ekylibre/plugin_system/testing/spec_reporter.rb

Instance Method Summary collapse

Instance Method Details

#record_print_status(test) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/ekylibre/plugin_system/testing/spec_reporter.rb', line 10

def record_print_status(test)
  test_name = test.name.gsub(/^test_: /, 'test:')
  print_colored_status(test)
  print pad_test(test_name)
  print(format(' (%.2fs)', test.time)) unless test.time.nil?
  puts
end