fastlane/lib/fastlane/actions/spm.rb in fastlane-2.141.0 vs fastlane/lib/fastlane/actions/spm.rb in fastlane-2.142.0

- old
+ new

@@ -13,10 +13,13 @@ if params[:xcconfig] cmd << "--xcconfig-overrides #{params[:xcconfig]}" end if params[:xcpretty_output] cmd += ["2>&1", "|", "xcpretty", "--#{params[:xcpretty_output]}"] + if params[:xcpretty_args] + cmd << (params[:xcpretty_args]).to_s + end cmd = %w(set -o pipefail &&) + cmd end FastlaneCore::CommandExecutor.execute(command: cmd.join(" "), print_all: true, @@ -65,9 +68,14 @@ description: "Specifies the output type for xcpretty. eg. 'test', or 'simple'", optional: true, verify_block: proc do |value| UI.user_error!("Please pass a valid xcpretty output type: (#{xcpretty_output_types.join('|')})") unless xcpretty_output_types.include?(value) end), + FastlaneCore::ConfigItem.new(key: :xcpretty_args, + env_name: "FL_SPM_XCPRETTY_ARGS", + description: "Pass in xcpretty additional command line arguments (e.g. '--test --no-color' or '--tap --no-utf'), requires xcpretty_output to be specified also", + type: String, + optional: true), FastlaneCore::ConfigItem.new(key: :verbose, short_option: "-v", env_name: "FL_SPM_VERBOSE", description: "Increase verbosity of informational output", is_string: false,