Class: Minitest::NagaReporter

Inherits:
StatisticsReporter
  • Object
show all
Defined in:
lib/minitest/naga/naga_reporter.rb

Instance Method Summary collapse

Instance Method Details

#reportObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/minitest/naga/naga_reporter.rb', line 3

def report
  super
  return unless options[:naga]
  puts "=" *80
  puts "Naga"
  naga_api = NagaApiClient.new
  detector = Detector.new(naga_api.credentials)
  puts "=" *80
  detector.my_first_time
  detector.dressed_like_a_bat(count)
  detector.a_trip_to_the_whizz_palace(total_time)
  detector.papyrus(count, failures, errors)
  detector.cant_catch_em_all(count, failures)
  detector.why_do_we_fall(count, failures)
  Game.new(naga_api.credentials, detector)
  puts "=" *80
end