Module: Onceover::CodeQuality::Formatter
- Defined in:
- lib/onceover/codequality/formatter.rb
Constant Summary collapse
- START_TEST =
"Checking".freeze
- MSG_TEST_OK =
"...OK".freeze
Class Method Summary collapse
Class Method Details
.end_test(output, ok, show_output = false) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/onceover/codequality/formatter.rb', line 11 def self.end_test(output, ok, show_output = false) if !ok || show_output output.each_line do |line| logger.info("\t#{line.chomp}") end end if ok logger.info "...OK" else logger.error "...FAILED" end end |
.start_test(test_name) ⇒ Object
7 8 9 |
# File 'lib/onceover/codequality/formatter.rb', line 7 def self.start_test(test_name) logger.info "Checking #{test_name}..." end |