Class: XCResult::ActionTestSummary

Inherits:
ActionTestSummaryIdentifiableObject show all
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

Attributes inherited from ActionTestSummaryIdentifiableObject

#identifier, #parent

Attributes inherited from ActionAbstractTestSummary

#name

Attributes inherited from AbstractObject

#type

Instance Method Summary collapse

Methods inherited from ActionTestSummaryIdentifiableObject

#all_subtests, create

Methods inherited from AbstractObject

#fetch_value, #fetch_values

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_summariesObject

Returns the value of attribute activity_summaries.



441
442
443
# File 'lib/xcresult/models.rb', line 441

def activity_summaries
  @activity_summaries
end

#durationObject

Returns the value of attribute duration.



440
441
442
# File 'lib/xcresult/models.rb', line 440

def duration
  @duration
end

#test_statusObject

Returns the value of attribute test_status.



439
440
441
# File 'lib/xcresult/models.rb', line 439

def test_status
  @test_status
end