class CustomParallelHtmlFormatter

Public Class Methods

new(output) click to toggle source
Calls superclass method ParallelHtmlFormatter::new
# File lib/sim/custom_parallel_html_formatter.rb, line 10
def initialize(output)
  super
  #  raise "output has to be a file path!" unless output.is_a?(String)
  @output_dir = File.dirname(@output)
end

Public Instance Methods

example_failed(example) click to toggle source
# File lib/sim/custom_parallel_html_formatter.rb, line 20
def example_failed(example)
  example_failed_helper(example, @buffer)
end
example_group_finished(example_group) click to toggle source
Calls superclass method
# File lib/sim/custom_parallel_html_formatter.rb, line 28
def example_group_finished(example_group)
  super(example_group)
end
example_group_started(example_group) click to toggle source
# File lib/sim/custom_parallel_html_formatter.rb, line 24
def example_group_started(example_group)
  super(example_group)
end
example_passed(example) click to toggle source
# File lib/sim/custom_parallel_html_formatter.rb, line 16
def example_passed(example)
  example_passed_helper(example, @buffer)
end
example_pending(example) click to toggle source
Calls superclass method ParallelHtmlFormatter#example_pending
# File lib/sim/custom_parallel_html_formatter.rb, line 40
def example_pending(example)
  super(example)
end
example_started(example) click to toggle source
Calls superclass method ParallelHtmlFormatter#example_started
# File lib/sim/custom_parallel_html_formatter.rb, line 32
def example_started(example)
  super(example)
end
extra_failure_content(failure) click to toggle source
# File lib/sim/custom_parallel_html_formatter.rb, line 44
def extra_failure_content(failure)
  content = []
  content << "<span>"
  content << ""
  content << "</span>"
  super + content.join($/)
end
print_screenshot(example) click to toggle source