@private
# File lib/rspec/core/formatters/html_formatter.rb, line 104 def dump_summary(summary) @printer.print_summary( summary.duration, summary.example_count, summary.failure_count, summary.pending_count ) @printer.flush end
# File lib/rspec/core/formatters/html_formatter.rb, line 55 def example_failed(failure) @failed_examples << failure.example unless @header_red @header_red = true @printer.make_header_red end unless @example_group_red @example_group_red = true @printer.make_example_group_header_red(example_group_number) end @printer.move_progress(percent_done) example = failure.example exception = failure.exception exception_details = if exception { :message => exception.message, :backtrace => failure.formatted_backtrace.join("\n") } else false end extra = extra_failure_content(failure) @printer.print_example_failed( example.execution_result.pending_fixed, example.description, example.execution_result.run_time, @failed_examples.size, exception_details, (extra == "") ? false : extra, true ) @printer.flush end
# File lib/rspec/core/formatters/html_formatter.rb, line 28 def example_group_started(notification) super @example_group_red = false @example_group_number += 1 unless example_group_number == 1 @printer.print_example_group_end end @printer.print_example_group_start( example_group_number, notification.group.description, notification.group.parent_groups.size ) @printer.flush end
# File lib/rspec/core/formatters/html_formatter.rb, line 49 def example_passed(passed) @printer.move_progress(percent_done) @printer.print_example_passed( passed.example.description, passed.example.execution_result.run_time ) @printer.flush end
# File lib/rspec/core/formatters/html_formatter.rb, line 94 def example_pending(pending) example = pending.example @printer.make_header_yellow unless @header_red @printer.make_example_group_header_yellow(example_group_number) unless @example_group_red @printer.move_progress(percent_done) @printer.print_example_pending( example.description, example.execution_result.pending_message ) @printer.flush end
# File lib/rspec/core/formatters/html_formatter.rb, line 45 def example_started(notification) @example_number += 1 end
Generated with the Darkfish Rdoc Generator 2.