class JmlTestRunner::TestCase

Attributes

description[R]
duration[R]
fn[R]
id[R]
iteration[R]
message[R]
path[R]
result[R]

Public Class Methods

new(hash = {}) click to toggle source
# File lib/jml_test_runner/test_case.rb, line 7
def initialize(hash = {})
  @result = hash['result'].to_sym
  @path = hash['path']
  @fn = hash['fn']
  @id = hash['id']
  @iteration = hash['iteration']
  @duration = hash['duration']
  @description = hash['description']
  @message = hash['message']
end

Public Instance Methods

error?() click to toggle source
# File lib/jml_test_runner/test_case.rb, line 26
def error?
  @result == :error
end
failure?() click to toggle source
# File lib/jml_test_runner/test_case.rb, line 22
def failure?
  @result == :failure
end
success?() click to toggle source
# File lib/jml_test_runner/test_case.rb, line 18
def success?
  @result == :success
end