class Buildr::TestFramework::TestResult::YamlFormatter

An Rspec formatter used by buildr

Attributes

result[R]

Public Class Methods

new(output) click to toggle source
Calls superclass method
# File lib/buildr/java/test_result.rb, line 59
def initialize(output)
  super(output)
  @result = Hash.new
  @result[:succeeded] = []
  @result[:failed] = []
end

Public Instance Methods

close() click to toggle source
Calls superclass method
# File lib/buildr/java/test_result.rb, line 86
def close
  super
  result.succeeded = result.succeeded - result.failed
  output.puts YAML.dump(result)
end
example_failed(example) click to toggle source
Calls superclass method
# File lib/buildr/java/test_result.rb, line 76
def example_failed(example)
  super(example)
  result.failed << example_name(example)
end
example_passed(example) click to toggle source
Calls superclass method
# File lib/buildr/java/test_result.rb, line 66
def example_passed(example)
  super(example)
  result.succeeded << example_name(example)
end
example_pending(example) click to toggle source
Calls superclass method
# File lib/buildr/java/test_result.rb, line 71
def example_pending(example)
  super(example)
  result.succeeded << example_name(example)
end
start(example_count) click to toggle source
Calls superclass method
# File lib/buildr/java/test_result.rb, line 81
def start(example_count)
  super(example_count)
  @result = TestResult.new
end