使用 RSpec,我可以指定记录的失败吗?

With RSpec, can I specify the documented failures?

通过 RSpec 我们可以使用 --only-failures 标志来 运行 failed_examples.txt 中的示例。

如果我将该文件复制为 featured_examples.txt 是否有办法 运行 RSpec 在该文件中包含示例?

RSpec好像不支持,不过bash来救场了!

像这样的东西应该有用

cat failed_examples.txt | xargs rspec

或者也许

rspec $(cat failed_examples.txt)