Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/test_center/helper/xcodebuild_string.rb

Instance Method Summary collapse

Instance Method Details

#shellsafe_testidentifierObject



20
21
22
# File 'lib/fastlane/plugin/test_center/helper/xcodebuild_string.rb', line 20

def shellsafe_testidentifier
  TestCenter::Helper::MUST_SHELLESCAPE_TESTIDENTIFIER ? self.shellescape : self
end

#strip_testcaseObject



24
25
26
# File 'lib/fastlane/plugin/test_center/helper/xcodebuild_string.rb', line 24

def strip_testcase
  split('/').first(2).join('/')
end

#testsuiteObject



12
13
14
15
16
17
18
# File 'lib/fastlane/plugin/test_center/helper/xcodebuild_string.rb', line 12

def testsuite
  if self.testsuite_swift?
    self.split('.')[1]
  else
    self
  end
end

#testsuite_swift?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/fastlane/plugin/test_center/helper/xcodebuild_string.rb', line 8

def testsuite_swift?
  self.include?('.')
end