lib/scan/options.rb in scan-0.3.0 vs lib/scan/options.rb in scan-0.3.1
- old
+ new
@@ -2,10 +2,12 @@
require "credentials_manager"
module Scan
class Options
def self.available_options
+ containing = Helper.fastlane_enabled? ? './fastlane' : '.'
+
[
FastlaneCore::ConfigItem.new(key: :workspace,
short_option: "-w",
env_name: "SCAN_WORKSPACE",
optional: true,
@@ -50,10 +52,10 @@
default_value: false),
FastlaneCore::ConfigItem.new(key: :output_directory,
short_option: "-o",
env_name: "SCAN_OUTPUT_DIRECTORY",
description: "The directory in which all reports will be stored",
- default_value: "./test_output"),
+ default_value: File.join(containing, "test_output")),
FastlaneCore::ConfigItem.new(key: :output_style,
short_option: "-b",
env_name: "SCAN_OUTPUT_STYLE",
description: "Define how the output should look like (standard, basic or rspec)",
optional: true,