class TestCenter::Helper::XCTestrunInfo
Public Class Methods
new(xctestrun_filepath)
click to toggle source
# File lib/fastlane/plugin/test_center/helper/xctestrun_info.rb, line 6 def initialize(xctestrun_filepath) raise Errno::ENOENT, xctestrun_filepath unless File.exist?(xctestrun_filepath) @xctestrun = Plist.parse_xml(xctestrun_filepath) @xctestrun_rootpath = File.dirname(xctestrun_filepath) end
Public Instance Methods
app_path_for_testable(testable)
click to toggle source
# File lib/fastlane/plugin/test_center/helper/xctestrun_info.rb, line 13 def app_path_for_testable(testable) @xctestrun[testable].fetch('UITargetAppPath') do |_| @xctestrun[testable]['TestHostPath'] end.sub('__TESTROOT__', @xctestrun_rootpath) end
app_plist_for_testable(testable)
click to toggle source
# File lib/fastlane/plugin/test_center/helper/xctestrun_info.rb, line 19 def app_plist_for_testable(testable) binary_plistfile = File.join(app_path_for_testable(testable), 'Info.plist') Plist.parse_binary_xml(binary_plistfile) end