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 61
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 88
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 78
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 68
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 73
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 83
def start(example_count)
  super(example_count)
  @result = TestResult.new
end