Sha256: ac213d35dcc283cbb4834858a30ce8245df0a63fe2ac287bc02761f0a8e3c54f

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

require "golden_rose/version"
require "golden_rose/subtest_item"
require "golden_rose/parent_item"
require "golden_rose/child_item"
require "golden_rose/parser"
require "golden_rose/execution_details"
require "golden_rose/results_filterer"
require "golden_rose/testable_summary"
require "golden_rose/generators/html_format"
require "golden_rose/cli/app"
require "golden_rose/build_log"
require "golden_rose/xcactivitylog_reader"
require "golden_rose/file_resource"
require "golden_rose/info"
require "golden_rose/class_configurator"



module GoldenRose
  def self.generate(folder_path, output_path, force_save, format: :html)
    parser = Parser.new(folder_path)
    ClassConfigurator.configure(parser.source_type, folder_path, output_path)

    parsed_data = parser.parse!

    parsed_plist = parsed_data.parsed_test_summaries_plist
    test_results = ResultsFilterer.new(parsed_plist).filter!

    build_log = parsed_data.parsed_build_logs

    case format
    when :html
      Generators::HtmlFormat.new(test_results, build_log, output_path, force_save).output
    else
      raise GeneratingError, "Format not supported."
    end
  end

  def self.root
    File.dirname(__dir__)
  end

  class GeneratingError < StandardError; end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
golden_rose-1.0.0.pre lib/golden_rose.rb