Class: TestSummaryPresenter

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_minitest_analyzer/test_summary_presenter.rb

Instance Method Summary collapse

Constructor Details

#initialize(duplicated_suites) ⇒ TestSummaryPresenter

Returns a new instance of TestSummaryPresenter.



6
7
8
9
10
# File 'lib/ruby_minitest_analyzer/test_summary_presenter.rb', line 6

def initialize(duplicated_suites)
  @duplicated_suites = duplicated_suites
  @total_extra_classes = @duplicated_suites.count
  @total_extra_tests = total_extra_tests_across_suites
end

Instance Method Details

#presentObject



12
13
14
15
16
17
# File 'lib/ruby_minitest_analyzer/test_summary_presenter.rb', line 12

def present
  puts "* Total duplicated tests that can be removed: #{@total_extra_tests}"
  puts "* Total classes with duplicated tests: #{@total_extra_classes} "
  print_table_stats
  puts "\n\n"
end