Class: XcodeResultBundleProcessor::TestSummaries::TestResult
- Inherits:
-
Object
- Object
- XcodeResultBundleProcessor::TestSummaries::TestResult
- Defined in:
- lib/xcoderesultbundleprocessor/test_summaries/test_summaries.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.parse(test_result) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/xcoderesultbundleprocessor/test_summaries/test_summaries.rb', line 4 def self.parse(test_result) TestResult.new( identifier: test_result['TestIdentifier'], passed?: test_result['TestStatus'] == 'Success', failure_summaries: Array(test_result['FailureSummaries']).map { |failure_summary| FailureSummary.parse(failure_summary) }, activities: Array(test_result['ActivitySummaries']).map { |activity_summary| Activity.parse(activity_summary) } ) end |
Instance Method Details
#summary ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/xcoderesultbundleprocessor/test_summaries/test_summaries.rb', line 13 def summary identifier + ' ' + if passed? 'Passed' else 'Failed' end end |