require 'rspec'
require 'rspec/core/formatters/base_text_formatter'
require 'rspec/core/formatters/html_printer'
require 'gmail'
require 'sys/uname'
include Sys
#https://github.com/GICodeWarrior/threaded-rspec
module RSpec
module Core
module Formatters
class HtmlPrinter
def print_html_start
@output.puts YALE_HTML_HEADER
@output.puts YALE_REPORT_HEADER
end
def print_summary( was_dry_run, duration, example_count, failure_count, pending_count )
# TODO - kill dry_run?
if was_dry_run
totals = "This was a dry-run"
else
totals = "#{example_count} example#{'s' unless example_count == 1}, "
totals << "#{failure_count} failure#{'s' unless failure_count == 1}"
totals << ", #{pending_count} pending" if pending_count > 0
end
formatted_duration = sprintf("%.5f", duration)
@output.puts ""
@output.puts ""
@output.puts ""
@output.puts ""
@output.puts ""
@output.puts ""
@output.puts "