改变Rubymine Rspec颜色

Min*_*ohn 5 rspec colors rubymine rspec2

我使用Rspec进行测试,但无法找到如何将灰色更改为红色和绿色.我测试了很多 - 特别是当发生错误时 - 我很难读取传递和失败.

你能帮忙的话,我会很高兴 :)

在此输入图像描述

Tra*_*ash 5

我通过做以下两件事来运行它:

  1. 在您的运行/调试配置中-cRunner options字段中输入
  2. 在您的 中spec_helper.rb,添加以下代码:

    RSpec.configure do |config|
      config.tty = true
    end
    
    Run Code Online (Sandbox Code Playgroud)

附加信息:http : //rubyforge.org/pipermail/rspec-users/2011-January/019327.html