Sha256: cc5ddec7dfe52932fadb0b3b9af4a9ae6547f297b9b08fa00a180022418ff77f
Contents?: true
Size: 711 Bytes
Versions: 11
Compression:
Stored size: 711 Bytes
Contents
module XCPretty class Knock < Formatter FAIL = 'not ok' PASS = 'ok' def format_passing_test(suite, test_case, time) "#{PASS} - #{test_case}" end def format_failing_test(test_suite, test_case, reason, file) "#{FAIL} - #{test_case}: FAILED" + format_failure_diagnostics(test_suite, test_case, reason, file) end def format_test_summary(executed_message, failures_per_suite) '' end def format_failure_diagnostics(test_suite, test_case, reason, file) format_diagnostics(reason) + format_diagnostics(" #{file}: #{test_suite} - #{test_case}") end private def format_diagnostics(text) "\n# #{text}" end end end
Version data entries
11 entries across 11 versions & 2 rubygems