class Test::Unit::UI::Tap::JSONTestRunner

TAP-J report format.

Public Class Methods

new(suite, options={}) click to toggle source
# File lib/test/unit/ui/tap/json_testrunner.rb, line 11
def initialize(suite, options={})
  require 'json' unless respond_to?(:to_json)
  super(suite, options)
end

Public Instance Methods

tapout_after_suite(time) click to toggle source
# File lib/test/unit/ui/tap/json_testrunner.rb, line 46
def tapout_after_suite(time)
  doc = super(time)
  puts doc.to_json if doc
end
tapout_before_case(testcase) click to toggle source
# File lib/test/unit/ui/tap/json_testrunner.rb, line 18
def tapout_before_case(testcase)
  doc = super(testcase)
  puts doc.to_json if doc
end
tapout_before_suite(suite) click to toggle source
# File lib/test/unit/ui/tap/json_testrunner.rb, line 15
def tapout_before_suite(suite)
  puts super(suite).to_json
end
tapout_error(test) click to toggle source
# File lib/test/unit/ui/tap/json_testrunner.rb, line 42
def tapout_error(test)
  doc = super(test)
  puts doc.to_json if doc
end
tapout_fail(test) click to toggle source
# File lib/test/unit/ui/tap/json_testrunner.rb, line 30
def tapout_fail(test)
  doc = super(test)
  puts doc.to_json if doc
end
tapout_note(note) click to toggle source
# File lib/test/unit/ui/tap/json_testrunner.rb, line 22
def tapout_note(note)
  doc = super(note)
  puts doc.to_json if doc
end
tapout_omit(test) click to toggle source
# File lib/test/unit/ui/tap/json_testrunner.rb, line 34
def tapout_omit(test)
  doc = super(test)
  puts doc.to_json if doc
end
tapout_pass(test) click to toggle source
# File lib/test/unit/ui/tap/json_testrunner.rb, line 26
def tapout_pass(test)
  doc = super(test)
  puts doc.to_json if doc
end
tapout_todo(test) click to toggle source
# File lib/test/unit/ui/tap/json_testrunner.rb, line 38
def tapout_todo(test)
  doc = super(test)
  puts doc.to_json if doc
end