turn-project / turn

Turn provides a set of alternative runners for MiniTest, both colorful and informative.
https://rubygems.org/gems/turn
MIT License
416 stars 67 forks source link

no colors #108

Open ghost opened 11 years ago

ghost commented 11 years ago

I've installed turn, gem turn, :group => :test, run rake test:units but the results are not colorized.

trans commented 11 years ago

What's your platform? Windows, Linux, Mac OS or ?

ghost commented 11 years ago

On 25 November 2012 17:33, 7rans notifications@github.com wrote:

What's your platform? Windows, Linux, Mac OS or ?

I'm using linux.

trans commented 11 years ago

Ok. Do you have ansi gem installed?

ghost commented 11 years ago

On 26 November 2012 12:54, 7rans notifications@github.com wrote:

Ok. Do you have ansi gem installed?

Yes, turn install ansi gem as dependence.

trans commented 11 years ago

Ok. I need to dig in deeper then to figure it out. Is the code repository open source, can I look at?

ghost commented 11 years ago

On 26 November 2012 15:02, 7rans notifications@github.com wrote:

Ok. I need to dig in deeper than to figure it out. Is the code repository open source, can I look at?

If you want I can send you. Do you mean the entire application code?

trans commented 11 years ago

Well, we can do it piecemeal if you want, starting with the Rakefile that you use to start the tests, then any test helper files you use. If I can't figure it out from that then we can go further. You should be able to get my email via my github persona.

VonD commented 11 years ago

Hello,

Same issue here within a rails engine.

# gemspec
s.add_development_dependency "turn"

# Rakefile is the default generated Rakefile

# test/test_helper.rb

require 'simplecov'
SimpleCov.start

ENV["RAILS_ENV"] = "test"

require File.expand_path("../dummy/config/environment.rb",  __FILE__)
require "rails/test_help"

Rails.backtrace_cleaner.remove_silencers!

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

require 'turn'
Turn.config.format = :outline

I've had the same issue when developing gems. In apps, no problems. I also tried requiring 'turn/colorize'. Thanks very much for your help.