Class: RUNIT::TestResult

Inherits:
Test::Unit::TestResult
  • Object
show all
Defined in:
lib/runit/testresult.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors



9
10
11
# File 'lib/runit/testresult.rb', line 9

def errors
  @errors
end

#failuresObject (readonly)

Returns the value of attribute failures



9
10
11
# File 'lib/runit/testresult.rb', line 9

def failures
  @failures
end

Instance Method Details

#add_error(error) ⇒ Object



34
35
36
37
38
39
40
41
42
# File 'lib/runit/testresult.rb', line 34

def add_error(error)
  def error.at
    return location
  end
  def error.err
    return exception
  end
  super(error)
end

#add_failure(failure) ⇒ Object



25
26
27
28
29
30
31
32
33
# File 'lib/runit/testresult.rb', line 25

def add_failure(failure)
  def failure.at
    return location
  end
  def failure.err
    return message
  end
  super(failure)
end

#error_sizeObject



19
20
21
# File 'lib/runit/testresult.rb', line 19

def error_size
  return error_count
end

#failure_sizeObject



13
14
15
# File 'lib/runit/testresult.rb', line 13

def failure_size
  return failure_count
end

#run_assertsObject



16
17
18
# File 'lib/runit/testresult.rb', line 16

def run_asserts
  return assertion_count
end

#run_testsObject



22
23
24
# File 'lib/runit/testresult.rb', line 22

def run_tests
  return run_count
end

#succeed?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/runit/testresult.rb', line 10

def succeed?
  return passed?
end