class Minitest::Reporters::RubyMineReporter

def start

def start
  super
  puts('Started with run options %s' % options[:args])
  puts
  # Setup test runner's MessageFactory
  set_message_factory(Rake::TeamCity::MessageFactory)
  log_test_reporter_attached
  # Report tests count:
  if ::Rake::TeamCity.is_in_idea_mode
    log(@message_factory.create_tests_count(total_count))
  elsif ::Rake::TeamCity.is_in_buildserver_mode
    log(@message_factory.create_progress_message("Starting.. (#{total_count} tests)"))
  end
end