Sha256: 8c0fbb1f96a561890e64ce11837266f228beacebb6ee037fef4c8dd84b8bcc62
Contents?: true
Size: 847 Bytes
Versions: 2
Compression:
Stored size: 847 Bytes
Contents
module Korinthenkacker module Reporters class Verbose def print_jobs_report(jobs) puts jobs.map(&:name) end def print_builds_report(reports) output = ["#\tsuccess\tduration"] reports.each do |report| output << "#{report.build}\t#{report.success?}\t#{report.duration}" end puts output.join("\n") end def print_scenario_reports(test_cases) print_table_header unless test_cases.empty? test_cases.each { |test_case| print_scenario_report(test_case) } end private def print_table_header printf("%s\t%-15s\t%s\n", '#', 'duration', 'scenario name') end def print_scenario_report(scenario) printf("%s\t%-15s\t'%s'\n", scenario.build, scenario.duration, scenario.full_name) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
korinthenkacker-0.0.3 | lib/korinthenkacker/reporters/verbose.rb |
korinthenkacker-0.0.2 | lib/korinthenkacker/reporters/verbose.rb |