Rails 测试混乱
我一直在尝试确定一种测试 Rails 应用程序的好方法,涵盖所有相关方面...因为我根本没有编写测试的经验,所以我一直在查看railscasts.com,这似乎是学习基本知识的一个很好的资源导轨。但对于测试,我发现了几集,一些使用 Rails 单元测试类,其他使用 Cucumber、RSPEC、ZenTest、Autotests、Webrat、Selenium 等。
所以我现在不确定是否应该选择其中之一或组合。其中一些现在已经过时了吗?它们是相互排斥的吗?...基本上我想学习 Rails 测试,并想听听有关如何正确且充分地测试 Rails 应用程序以及用于不同类型测试的框架的意见,
请帮忙,提前感谢
ps。如果有人可以提供一个很好的资源来学习单元测试、集成测试等之间的区别,我将不胜感激......我知道我没有做 TDD 或 BDD 因为我的应用程序现在已经完成了,一切似乎都在工作得很好。但我仍然想添加测试以用于学习目的和未来的发展。
I have been trying to determine a good way to test rails apps, covering all relevant aspects... since I have no experience writing tests at all I have been looking at railscasts.com which seems like a pretty good resource to learn basic stuff for rails. but for tests I have found several episodes, some using rails unit test classes, others use Cucumber, RSPEC, ZenTest, Autotests, Webrat, Selenium, etc.
So Im now just not sure if Im supposed to pick one of these or a combination. are some of these now old and obsolete?? are they mutually exclusive?... basically I want to learn testing for rails and would like to hear opinions on how to properly and sufficiently test rails apps and what framework to use for the different types of tests
please help, thanks in advance
ps. if someone can provide a good resource for learning the difference between unit tests, integration tests and so on I'd appreciate it.... I know I didnt do TDD or BDD cause my app is pretty much done now, and all seems to be working just fine. but I still would like to add tests for learning purposes and future developments.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://guides.rubyonrails.org/testing.html
http://guides.rubyonrails.org/testing.html