lib/scan/test_command_generator.rb in scan-0.12.1 vs lib/scan/test_command_generator.rb in scan-0.13.0
- old
+ new
@@ -61,10 +61,16 @@
end
def pipe
# During building we just show the output in the terminal
# Check out the ReportCollector class for more xcpretty things
+ pipe = ["| tee '#{xcodebuild_log_path}'"]
+
+ if Scan.config[:output_style] == 'raw'
+ return pipe
+ end
+
formatter = []
if Scan.config[:formatter]
formatter << "-f `#{Scan.config[:formatter]}`"
elsif ENV.key?("TRAVIS")
formatter << "-f `xcpretty-travis-formatter`"
@@ -81,10 +87,10 @@
if Scan.config[:output_style] == 'rspec'
formatter << "--test"
end
- ["| tee '#{xcodebuild_log_path}' | xcpretty #{formatter.join(' ')}"]
+ return pipe << ["| xcpretty #{formatter.join(' ')}"]
end
# Store the raw file
def xcodebuild_log_path
file_name = "#{Scan.project.app_name}-#{Scan.config[:scheme]}.log"