MiniTest - 仅重新运行失败的测试

Bvu*_*Ic7 7 ruby testing minitest ruby-on-rails-3

是否可以通过rake任务让minitest只运行失败的测试?

无法在互联网上找到任何关于这个...用rspec或黄瓜它工作..这里有可能吗?

mil*_*hes 1

我能找到的最接近的是这个插件:

https://github.com/ivantsepp/minitest-rerun-options

它会输出失败测试的命令行选项,如下所示:

Rerun failed tests options:
--name TestExample#test_another_that_will_fail
--name TestExample#test_that_will_fail
Run Code Online (Sandbox Code Playgroud)

这样您就可以将它们附加到您的rake test命令中。