Class: GoldenRose::ParentItem

Inherits:
SubtestItem show all
Defined in:
lib/golden_rose/parent_item.rb

Instance Attribute Summary collapse

Attributes inherited from SubtestItem

#name

Instance Method Summary collapse

Methods inherited from SubtestItem

#initialize, #to_h

Constructor Details

This class inherits a constructor from GoldenRose::SubtestItem

Instance Attribute Details

#subtestsObject

Returns the value of attribute subtests.



6
7
8
# File 'lib/golden_rose/parent_item.rb', line 6

def subtests
  @subtests
end

Instance Method Details

#failures_countObject



13
14
15
# File 'lib/golden_rose/parent_item.rb', line 13

def failures_count
  @failures_count ||= failed_subtests? ? failed_subtests.size : nil
end

#node_idObject

Used in html generator



9
10
11
# File 'lib/golden_rose/parent_item.rb', line 9

def node_id
  @node_id ||= "node_#{object_id}"
end