Class: Google::Apis::TestingV1::IosXcTest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/testing_v1/classes.rb,
generated/google/apis/testing_v1/representations.rb,
generated/google/apis/testing_v1/representations.rb

Overview

A test of an iOS application that uses the XCTest framework. Xcode supports the option to "build for testing", which generates an .xctestrun file that contains a test specification (arguments, test methods, etc). This test type accepts a zip file containing the .xctestrun file and the corresponding contents of the Build/Products directory that contains all the binaries needed to run the tests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ IosXcTest

Returns a new instance of IosXcTest



1409
1410
1411
# File 'generated/google/apis/testing_v1/classes.rb', line 1409

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#tests_zipGoogle::Apis::TestingV1::FileReference

A reference to a file, used for user inputs. Corresponds to the JSON property testsZip



1395
1396
1397
# File 'generated/google/apis/testing_v1/classes.rb', line 1395

def tests_zip
  @tests_zip
end

#xcode_versionString

Optional. The Xcode version that should be used for the test. Use the EnvironmentDiscoveryService to get supported options. Defaults to the latest Xcode version Firebase Test Lab supports. Corresponds to the JSON property xcodeVersion

Returns:

  • (String)


1402
1403
1404
# File 'generated/google/apis/testing_v1/classes.rb', line 1402

def xcode_version
  @xcode_version
end

#xctestrunGoogle::Apis::TestingV1::FileReference

A reference to a file, used for user inputs. Corresponds to the JSON property xctestrun



1407
1408
1409
# File 'generated/google/apis/testing_v1/classes.rb', line 1407

def xctestrun
  @xctestrun
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1414
1415
1416
1417
1418
# File 'generated/google/apis/testing_v1/classes.rb', line 1414

def update!(**args)
  @tests_zip = args[:tests_zip] if args.key?(:tests_zip)
  @xcode_version = args[:xcode_version] if args.key?(:xcode_version)
  @xctestrun = args[:xctestrun] if args.key?(:xctestrun)
end