Class: TuneUpPlistToJunitUtils

Inherits:
Object
  • Object
show all
Defined in:
lib/tuneup_plist_to_junit_utils.rb

Instance Method Summary collapse

Instance Method Details

#generate_reports(plist_file_or_xml, junit_class_name) ⇒ String

Process the plist file and generates a JUnit style xml string

Parameters:

  • plist_file_or_xml (String)

    file name or xml of the UIAutomation plist file

  • junit_class_name (String)

    the class name to append to each <testcase/> tag

Returns:

  • (String)

    the JUnit style xml



154
155
156
157
158
# File 'lib/tuneup_plist_to_junit_utils.rb', line 154

def generate_reports(plist_file_or_xml, junit_class_name)
  log_messages = parse_plist(plist_file_or_xml)
  tests = convert_log_messages_to_tests(log_messages)
  generate_junit_report(tests, junit_class_name)
end