Ruby:如何在testrb中获得颜色

Ruby:如何在testrb中获得颜色,ruby,ruby-1.9.2,ruby-1.9.3,ruby-1.9,Ruby,Ruby 1.9.2,Ruby 1.9.3,Ruby 1.9,是否有任何方法可以通过testrb获得颜色,而不需要将测试单元添加到GEM文件中,并在1.9上使用bundle exec(所有内容都在1.8中着色) ruby test/xxx\u test.rb->颜色 testrb test/xxx\u test.rb->无颜色 将测试单元添加到GEM文件和bundle exec testrb test/xxx_test.rb-> --使用color=yes会有效果。。。幸好它没有被记录下来:D

是否有任何方法可以通过testrb获得颜色,而不需要将测试单元添加到GEM文件中,并在1.9上使用bundle exec(所有内容都在1.8中着色)

  • ruby test/xxx\u test.rb
    ->颜色
  • testrb test/xxx\u test.rb
    ->无颜色
  • 将测试单元添加到GEM文件和
    bundle exec testrb test/xxx_test.rb
    ->
--使用color=yes
会有效果。。。幸好它没有被记录下来:D