Sha256: 518a54269a1195afcaba5b26daea4f271256beb4be04cba10fc9f03cff0729b5
Contents?: true
Size: 828 Bytes
Versions: 11
Compression:
Stored size: 828 Bytes
Contents
module XCPretty class TestAnything < Knock attr_reader :counter def initialize unicode, color super @counter = 0 end def format_passing_test(suite, test_case, time) increment_counter "#{PASS} #{counter} - #{test_case}" end def format_failing_test(test_suite, test_case, reason, file) increment_counter "#{FAIL} #{counter} - #{test_case}" + format_failure_diagnostics(test_suite, test_case, reason, file) end def format_pending_test(test_suite, test_case) increment_counter "#{FAIL} #{counter} - #{test_case} # TODO Not written yet" end def format_test_summary(executed_message, failures_per_suite) counter > 0 ? "1..#{counter}" : '' end private def increment_counter @counter += 1 end end end
Version data entries
11 entries across 11 versions & 2 rubygems