lib/scan/test_command_generator.rb in scan-0.3.3 vs lib/scan/test_command_generator.rb in scan-0.4.1
- old
+ new
@@ -64,9 +64,13 @@
if ENV.key?("TRAVIS")
formatter << "-f `xcpretty-travis-formatter`"
Helper.log.info "Automatically switched to Travis formatter".green
end
+ if Helper.colors_disabled?
+ formatter << "--no-color"
+ end
+
if Scan.config[:output_style] == 'basic'
formatter << "--no-utf"
end
if Scan.config[:output_style] == 'rspec'