Class: Chaser::Reporter
- Inherits:
-
Object
- Object
- Chaser::Reporter
- Defined in:
- lib/chaser.rb
Instance Method Summary collapse
- #info(message) ⇒ Object
- #method_loaded(klass_name, method_name) ⇒ Object
- #no_surviving_mutant ⇒ Object
- #report_failure ⇒ Object
- #report_test_failures ⇒ Object
- #warning(message) ⇒ Object
Instance Method Details
#info(message) ⇒ Object
337 338 339 340 341 342 |
# File 'lib/chaser.rb', line 337 def info() puts "*"*70 puts "*** #{}" puts "*"*70 puts end |
#method_loaded(klass_name, method_name) ⇒ Object
326 327 328 |
# File 'lib/chaser.rb', line 326 def method_loaded(klass_name, method_name) info "#{klass_name}\##{method_name} loaded" end |
#no_surviving_mutant ⇒ Object
350 351 352 |
# File 'lib/chaser.rb', line 350 def no_surviving_mutant puts "The mutant didn't survive. Cool!\n\n" end |
#report_failure ⇒ Object
344 345 346 347 348 |
# File 'lib/chaser.rb', line 344 def report_failure puts puts "The affected method didn't cause test failures." puts end |
#report_test_failures ⇒ Object
354 355 356 |
# File 'lib/chaser.rb', line 354 def report_test_failures puts "Tests failed -- this is good" if Chaser.debug end |
#warning(message) ⇒ Object
330 331 332 333 334 335 |
# File 'lib/chaser.rb', line 330 def warning() puts "!" * 70 puts "!!! #{}" puts "!" * 70 puts end |