lib/scan/options.rb in scan-0.6.1 vs lib/scan/options.rb in scan-0.7.0

- old
+ new

@@ -32,11 +32,25 @@ FastlaneCore::ConfigItem.new(key: :device, short_option: "-a", optional: true, is_string: true, env_name: "SCAN_DEVICE", - description: "The name of the simulator type you want to run tests on"), + description: "The name of the simulator type you want to run tests on (e.g. 'iPhone 6')", + conflicting_options: [:devices], + conflict_block: proc do |value| + UI.user_error!("You can't use 'device' and 'devices' options in one run") + end), + FastlaneCore::ConfigItem.new(key: :devices, + optional: true, + is_string: false, + env_name: "SCAN_DEVICES", + type: Array, + description: "Array of devices to run the tests on (e.g. ['iPhone 6', 'iPad Air'])", + conflicting_options: [:device], + conflict_block: proc do |value| + UI.user_error!("You can't use 'device' and 'devices' options in one run") + end), FastlaneCore::ConfigItem.new(key: :scheme, short_option: "-s", optional: true, env_name: "SCAN_SCHEME", description: "The project's scheme. Make sure it's marked as `Shared`"), @@ -48,10 +62,14 @@ default_value: false), FastlaneCore::ConfigItem.new(key: :code_coverage, description: "Should generate code coverage (Xcode 7 only)?", is_string: false, default_value: false), + FastlaneCore::ConfigItem.new(key: :address_sanitizer, + description: "Should turn on the address sanitizer?", + is_string: false, + default_value: false), FastlaneCore::ConfigItem.new(key: :skip_build, description: "Should skip debug build before test build?", short_option: "-r", env_name: "SCAN_SKIP_BUILD", is_string: false, @@ -70,11 +88,11 @@ UI.user_error!("Invalid output_style #{value}") unless ['standard', 'basic', "rspec"].include?(value) end), FastlaneCore::ConfigItem.new(key: :output_types, short_option: "-f", env_name: "SCAN_OUTPUT_TYPES", - description: "Comma seperated list of the output types (e.g. html, junit)", + description: "Comma separated list of the output types (e.g. html, junit)", default_value: "html,junit"), FastlaneCore::ConfigItem.new(key: :buildlog_path, short_option: "-l", env_name: "SCAN_BUILDLOG_PATH", description: "The directory were to store the raw log", @@ -113,9 +131,10 @@ optional: true), FastlaneCore::ConfigItem.new(key: :destination, short_option: "-d", env_name: "SCAN_DESTINATION", description: "Use only if you're a pro, use the other options instead", + is_string: false, optional: true), FastlaneCore::ConfigItem.new(key: :xcargs, short_option: "-x", env_name: "SCAN_XCARGS", description: "Pass additional arguments to xcodebuild. Be sure to quote the setting names and values e.g. OTHER_LDFLAGS=\"-ObjC -lstdc++\"",