Class: TestSummaryPresenter
- Inherits:
-
Object
- Object
- TestSummaryPresenter
- Defined in:
- lib/ruby_minitest_analyzer/test_summary_presenter.rb
Instance Method Summary collapse
-
#initialize(duplicated_suites) ⇒ TestSummaryPresenter
constructor
A new instance of TestSummaryPresenter.
- #present ⇒ Object
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
#present ⇒ Object
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 |