Rails 测试混乱

发布于 2024-09-08 08:55:47 字数 453 浏览 4 评论 0原文

我一直在尝试确定一种测试 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文