【问题标题】:Rspec doesn't explain failure tests anymoreRspec 不再解释失败测试
【发布时间】:2013-06-29 06:11:32
【问题描述】:

我将 Rspec 与 guard 和 spork 一起使用了一段时间,昨天我注意到我不再有解释了。现在当我输入rspec(为了运行每个测试)时,我只能看到.....................................FDone. 这样的东西,但我没有过去的人工翻译。更糟糕的是,Rspec 并没有运行所有的测试,甚至没有一半......

你知道什么会导致这种烦人的行为吗?

【问题讨论】:

    标签: ruby-on-rails rspec guard spork


    【解决方案1】:

    尝试设置--format 选项

    rspec example_spec.rb --format documentation
    

    输出应该类似于

    something
      does something that passes
      does something that fails (FAILED - 1)
      does something that is pending (PENDING: Not Yet Implemented)
    

    更多详情documented here

    【讨论】:

      猜你喜欢
      • 2023-03-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多