Sha256: 831308978727e1fa4444f617a9a02e8d171ae84984738983d824104ea93a2416

Contents?: true

Size: 539 Bytes

Versions: 1

Compression:

Stored size: 539 Bytes

Contents

module SelfTestingFramework
  class Reporter

    def report(test_result)
      print test_result[:error] ? 'F' : '.'
    end

    def total_report(test_results)
      r = test_results
      puts "\n\n"
      r.errors.each do |e|
        puts "#{e[:class_name]}##{e[:test_name]}"
        puts "  ERROR: #{e[:error]}"
      end
      puts "\n"
      puts "--------------------------------------------"
      #puts "Total Results:"
      puts "Tests: #{r.total_count}, Passed: #{r.passed_count}, Errors: #{r.errors_count}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
self_testing_framework-0.0.1 lib/self_testing_framework/reporter.rb