如何进行自动测试以在出现故障后继续运行我的规范而不停止?
这似乎是一个非常奇怪的问题,相信我,在在这里提出问题之前我已经做了很多搜索。我正在使用最新版本的 Rails 3 和 Rspec 2 以及 Ruby 1.9.2,当它们失败时,我无法进行自动测试以正确运行我的规范。
当我的所有规格都通过时,它的效果就很好;一旦我做出改变,规范就会重新运行,一切都很好。
当我遇到规范失败时,自动测试会停止,而不是等待我进行另一次更改。因此,它有点违背了自动测试的整个目的 - 我的测试变成红色,除非我再次手动运行自动测试,否则我无法再次将它们变为绿色。
This seems like a very bizarre problem and believe me I've done a lot of searching before posing the question here. I am using the latest version of Rails 3 and Rspec 2 with Ruby 1.9.2, and I can't get autotest to run my specs properly when they fail.
When all of my specs pass, it works great; as soon as I make a change, the specs re-run and all is well.
When I have a spec failure, autotest halts instead of waiting for me to make another change. So it sort of defeats the whole purpose of autotest - my tests go red and I don't get to make them green again unless I manually run autotest again.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以查看链接
http://ph7spot.com/musings/getting-started-with-autotest
以确保您没有错过任何内容。may you look at the link
http://ph7spot.com/musings/getting-started-with-autotest
to ensure that you have not missed something.您可以使用:
检查最后一分钟发生了什么变化,或者运行
获取触发重新运行的日志。
之后,只需编辑项目根目录中的 .autotest 文件即可忽略攻击性文件,例如:
You can use :
to check what changed in the last minute, or run
to have the log of what triggering the rerun.
After that, just ignore the offensive files by editing the .autotest file in the root of your project, for example :