Class: XCResult::ActionTestSummary
- Inherits:
-
ActionTestSummaryIdentifiableObject
- Object
- AbstractObject
- ActionAbstractTestSummary
- ActionTestSummaryIdentifiableObject
- XCResult::ActionTestSummary
- Defined in:
- lib/xcresult/models.rb
Overview
-
ActionTestSummary
-
Supertype: ActionTestSummaryIdentifiableObject
-
Kind: object
-
Properties: + testStatus: String + duration: Double + performanceMetrics: [ActionTestPerformanceMetricSummary] + failureSummaries: [ActionTestFailureSummary] + activitySummaries: [ActionTestActivitySummary]
-
Instance Attribute Summary collapse
-
#activity_summaries ⇒ Object
Returns the value of attribute activity_summaries.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#test_status ⇒ Object
Returns the value of attribute test_status.
Attributes inherited from ActionTestSummaryIdentifiableObject
Attributes inherited from ActionAbstractTestSummary
Attributes inherited from AbstractObject
Instance Method Summary collapse
-
#initialize(data, parent = nil) ⇒ ActionTestSummary
constructor
A new instance of ActionTestSummary.
Methods inherited from ActionTestSummaryIdentifiableObject
Methods inherited from AbstractObject
Constructor Details
#initialize(data, parent = nil) ⇒ ActionTestSummary
Returns a new instance of ActionTestSummary.
442 443 444 445 446 447 448 449 |
# File 'lib/xcresult/models.rb', line 442 def initialize(data, parent = nil) self.test_status = fetch_value(data, 'testStatus') self.duration = fetch_value(data, 'duration').to_f self.activity_summaries = fetch_values(data, 'activitySummaries').map do |summary_data| ActionTestActivitySummary.new(summary_data) end super(data, parent) end |
Instance Attribute Details
#activity_summaries ⇒ Object
Returns the value of attribute activity_summaries.
441 442 443 |
# File 'lib/xcresult/models.rb', line 441 def activity_summaries @activity_summaries end |
#duration ⇒ Object
Returns the value of attribute duration.
440 441 442 |
# File 'lib/xcresult/models.rb', line 440 def duration @duration end |
#test_status ⇒ Object
Returns the value of attribute test_status.
439 440 441 |
# File 'lib/xcresult/models.rb', line 439 def test_status @test_status end |