module Minitest::Reporters::Ws::Formatting

Constants

INFO_PADDING

Public Instance Methods

err_info(e) click to toggle source
# File lib/minitest/reporters/ws/formatting.rb, line 64
def err_info(e)
  err = ""
  e.message.each_line { |line| err += "<p>#{line}</p>" }

  trace = filter_backtrace(e.backtrace)
  trace.each { |line| err += "<p>#{line}</p>" }

  err
end
get_description(runner, test) click to toggle source
# File lib/minitest/reporters/ws/formatting.rb, line 5
def get_description(runner, test)
  "#{test.suite}: <b>#{test.test}</b>"
end
pad(str, size) click to toggle source
# File lib/minitest/reporters/ws/formatting.rb, line 74
def pad(str, size)
  ' ' * size + str
end
print_after_suite(suite) click to toggle source
print_after_suites() click to toggle source
print_err(suite, test, test_runner) click to toggle source
print_fail(suite, test, test_runner) click to toggle source
print_info(e) click to toggle source
print_pass(suite, test, test_runner) click to toggle source

TODO: fix printing

print_skip(suite, test, test_runner) click to toggle source
print_time(test) click to toggle source
print_with_info_padding(line) click to toggle source