class XCPretty::Knock

Constants

FAIL
PASS

Public Instance Methods

format_failing_test(test_suite, test_case, reason, file) click to toggle source
# File lib/xcpretty/formatters/knock.rb, line 12
def format_failing_test(test_suite, test_case, reason, file)
  "#{FAIL} - #{test_case}: FAILED" +
  format_failure_diagnostics(test_suite, test_case, reason, file)
end
format_failure_diagnostics(test_suite, test_case, reason, file) click to toggle source
# File lib/xcpretty/formatters/knock.rb, line 21
def format_failure_diagnostics(test_suite, test_case, reason, file)
  format_diagnostics(reason) +
  format_diagnostics("  #{file}: #{test_suite} - #{test_case}")
end
format_passing_test(suite, test_case, time) click to toggle source
# File lib/xcpretty/formatters/knock.rb, line 8
def format_passing_test(suite, test_case, time)
  "#{PASS} - #{test_case}"
end
format_test_summary(executed_message, failures_per_suite) click to toggle source
# File lib/xcpretty/formatters/knock.rb, line 17
def format_test_summary(executed_message, failures_per_suite)
  ''
end

Private Instance Methods

format_diagnostics(text) click to toggle source
# File lib/xcpretty/formatters/knock.rb, line 28
def format_diagnostics(text)
  "\n# #{text}"
end