Sha256: 18ab9dab37b2ef027fbb6130618fd18118ae51efe85d51f70dfb1f8d0a473af2
Contents?: true
Size: 819 Bytes
Versions: 9
Compression:
Stored size: 819 Bytes
Contents
# encoding: utf-8 class DogeReporter < XCPretty::Reporter def format_failing_test(suite, test_case, reason, file) @test_count += 1 @fail_count += 1 @tests.push("WOW such FAIL. Many #{test_case}. Much #{reason}. Very #{file}.") end def format_passing_test(suite, test_case, time) @test_count += 1 @tests.push("WOW such PASS. Many #{test_case}. Much green. Very success.") end def format_pending_test(classname, test_case) @test_count += 1 @tests.push("WOW such PENDING. Many #{test_case}. Much stop. Very wait.") end def write_report File.open(@filepath, 'w') do |f| output_string = @tests.join("\n") output_string += "\nWOW such FINISH. Very #{@test_count}. Much #{@fail_count} FAIL. Very done." f.write output_string end end end DogeReporter
Version data entries
9 entries across 9 versions & 2 rubygems