Module: XcodeResultBundleProcessor::TestSummaries::TextReport
- Includes:
- Methadone::CLILogging
- Defined in:
- lib/xcoderesultbundleprocessor/test_summaries/text_report.rb
Class Method Summary collapse
Class Method Details
.format(results_bundle) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/xcoderesultbundleprocessor/test_summaries/text_report.rb', line 6 def self.format(results_bundle) test_summaries = TestSummaries.new(results_bundle.read_plist('TestSummaries.plist')) buffer = IndentedStringBuffer.new test_summaries.tests.each { |test| self._format_test(test, buffer) } tests_passed_count = test_summaries.tests.group_by(&:passed?)[true].length info "#{tests_passed_count} / #{test_summaries.tests.length} tests passed" buffer.to_s end |