Module: XcodeResultBundleProcessor::ActivityLogFormatter
- Includes:
- Methadone::CLILogging
- Defined in:
- lib/xcoderesultbundleprocessor/activity_log_formatter.rb
Class Method Summary collapse
Class Method Details
.format(section) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/xcoderesultbundleprocessor/activity_log_formatter.rb', line 5 def self.format(section) debug "Formatting activity log section #{section.ai}" return "\n" if section.nil? buffer = IndentedStringBuffer.new # The top-level section contains the complete log for all test runs, so grabbing that text is enough to # get the full log section = section.subsections.first buffer << section.title << section.text.each_line buffer.to_s end |