Class: CI::Reporter::TestUtils::Accessor::Testcase

Inherits:
Struct
  • Object
show all
Defined in:
lib/ci/reporter/test_utils/accessor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#xmlObject

Returns the value of attribute xml

Returns:

  • (Object)

    the current value of xml



13
14
15
# File 'lib/ci/reporter/test_utils/accessor.rb', line 13

def xml
  @xml
end

Instance Method Details

#failuresObject



18
19
20
# File 'lib/ci/reporter/test_utils/accessor.rb', line 18

def failures
  xml.elements.to_a('failure').map {|f| Failure.new(f) }
end

#nameObject



14
15
16
# File 'lib/ci/reporter/test_utils/accessor.rb', line 14

def name
  xml.attributes['name']
end