Class: XCResult::ActionTestableSummary
- Inherits:
-
ActionAbstractTestSummary
- Object
- AbstractObject
- ActionAbstractTestSummary
- XCResult::ActionTestableSummary
- 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
-
#project_relative_path ⇒ Object
Returns the value of attribute project_relative_path.
-
#target_name ⇒ Object
Returns the value of attribute target_name.
-
#test_kind ⇒ Object
Returns the value of attribute test_kind.
-
#tests ⇒ Object
Returns the value of attribute tests.
Attributes inherited from ActionAbstractTestSummary
Attributes inherited from AbstractObject
Instance Method Summary collapse
- #all_tests ⇒ Object
-
#initialize(data) ⇒ ActionTestableSummary
constructor
A new instance of ActionTestableSummary.
Methods inherited from AbstractObject
Constructor Details
#initialize(data) ⇒ ActionTestableSummary
Returns a new instance of ActionTestableSummary.
84 85 86 87 88 89 90 91 92 |
# File 'lib/xcresult/models.rb', line 84 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_path ⇒ Object
Returns the value of attribute project_relative_path.
80 81 82 |
# File 'lib/xcresult/models.rb', line 80 def project_relative_path @project_relative_path end |
#target_name ⇒ Object
Returns the value of attribute target_name.
81 82 83 |
# File 'lib/xcresult/models.rb', line 81 def target_name @target_name end |
#test_kind ⇒ Object
Returns the value of attribute test_kind.
82 83 84 |
# File 'lib/xcresult/models.rb', line 82 def test_kind @test_kind end |
#tests ⇒ Object
Returns the value of attribute tests.
83 84 85 |
# File 'lib/xcresult/models.rb', line 83 def tests @tests end |
Instance Method Details
#all_tests ⇒ Object
94 95 96 |
# File 'lib/xcresult/models.rb', line 94 def all_tests tests.map(&:all_subtests).flatten end |