Class: XCResult::ActionTestableSummary

Inherits:
ActionAbstractTestSummary show all
Defined in:
lib/xcresult/models.rb

Overview

  • ActionTestableSummary

    • Supertype: ActionAbstractTestSummary

    • Kind: object

    • Properties: + projectRelativePath: String? + targetName: String? + testKind: String? + tests: [ActionTestSummaryIdentifiableObject] + diagnosticsDirectoryName: String? + failureSummaries: [ActionTestFailureSummary] + testLanguage: String? + testRegion: String?

Instance Attribute Summary collapse

Attributes inherited from ActionAbstractTestSummary

#name

Attributes inherited from AbstractObject

#type

Instance Method Summary collapse

Methods inherited from AbstractObject

#fetch_value, #fetch_values

Constructor Details

#initialize(data) ⇒ ActionTestableSummary

Returns a new instance of ActionTestableSummary.



83
84
85
86
87
88
89
90
91
# File 'lib/xcresult/models.rb', line 83

def initialize(data)
  self.project_relative_path = fetch_value(data, 'projectRelativePath')
  self.target_name = fetch_value(data, 'targetName')
  self.test_kind = fetch_value(data, 'testKind')
  self.tests = fetch_values(data, 'tests').map do |tests_data|
    ActionTestSummaryIdentifiableObject.create(tests_data, self)
  end
  super
end

Instance Attribute Details

#project_relative_pathObject

Returns the value of attribute project_relative_path.



79
80
81
# File 'lib/xcresult/models.rb', line 79

def project_relative_path
  @project_relative_path
end

#target_nameObject

Returns the value of attribute target_name.



80
81
82
# File 'lib/xcresult/models.rb', line 80

def target_name
  @target_name
end

#test_kindObject

Returns the value of attribute test_kind.



81
82
83
# File 'lib/xcresult/models.rb', line 81

def test_kind
  @test_kind
end

#testsObject

Returns the value of attribute tests.



82
83
84
# File 'lib/xcresult/models.rb', line 82

def tests
  @tests
end

Instance Method Details

#all_testsObject



93
94
95
# File 'lib/xcresult/models.rb', line 93

def all_tests
  tests.map(&:all_subtests).flatten
end