diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb index 9c1100b771..f9c106f9ed 100644 --- a/test/lib/test/unit.rb +++ b/test/lib/test/unit.rb @@ -565,7 +565,7 @@ module Test when :always color = true when :auto, nil - color = @options[:job_status] == :replace && /dumb/ !~ ENV["TERM"] + color = (@tty || @options[:job_status] == :replace) && /dumb/ !~ ENV["TERM"] else color = false end