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
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/onceover/codequality/formatter.rb', line 13 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
9 10 11 |
# File 'lib/onceover/codequality/formatter.rb', line 9 def self.start_test(test_name) logger.info "Checking #{test_name}..." end |