Class: MutationTester::Reporters::ConsoleReporter

Inherits:
BaseReporter
  • Object
show all
Defined in:
lib/mutation_tester/reporters/console_reporter.rb

Constant Summary collapse

NOTHING_KILLED_MIN_MUTANTS =
5

Instance Attribute Summary

Attributes inherited from BaseReporter

#config, #results, #source_file, #spec_file

Instance Method Summary collapse

Methods inherited from BaseReporter

#initialize, #interrupted?, score, status_for

Constructor Details

This class inherits a constructor from MutationTester::Reporters::BaseReporter

Instance Method Details

#generateObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/mutation_tester/reporters/console_reporter.rb', line 6

def generate
  puts "\n" + Rainbow('=' * 80).bright
  puts Rainbow('🧬 MUTATION TESTING REPORT').bright.cyan
  puts Rainbow('=' * 80).bright

  print_summary
  print_nothing_killed_warning
  print_survived_mutations if survived_count > 0

  puts "\n" + Rainbow('=' * 80).bright
end