我想在 Ruby On Rails 上启动 BDD 我应该学习什么?我对 BDD、RSpec 或 Cucumber 一无所知.最好的学习方法是什么?教程?涵盖诸如我应该测试什么行为?"之类的东西.等等
I want to start BDD on Ruby On Rails what should I learn? I don't know anything about BDD, RSpec or Cucumber. What is the best way to learn? Tutorials? Something that cover things like 'What behavior I should test?' etc.
谢谢!
RSpec specific;我保留这些链接以供参考(对于初学者来说可能是提前的).但只是想和你分享.(其中一些可能已经过时,但我认为仍然值得一读)
RSpec specific; I keep these links for reference (might be advance for beginners). But just wanna share it with you. (Some of it probably already outdated but I think still worth a read)
Rspec Link Fest - 其他参考资料的链接
控制器中的 RSpec:使用 rSpec 测试您的应用控制器
RSpec in Controllers: Testing your Application Controller with rSpec
使用 rspec 测试控制器
在控制器上使用 Rspec
模型中的 RSpec:Dave Chelimsky 的 stub_model
RSpec in Models: stub_model by Dave Chelimsky
我们真的需要控制器和视图测试吗?- 一些讨论
视图中的 RSpec:
RSpec in Views:
RSpec 测试转义 HTML 的视图
Rspec Stories(现为 Cucumber):
Rspec Stories (now Cucumber):
理解 RSpec 故事 - 教程
Windows 上的 Rspec:
Rspec on Windows:
Windows 上的 RSpec、自动测试和 Snarl -不知道这是否仍然相关
p/s:有些是 2007 年的,我不确定这些东西是否过时,但这些是我用来学习 RSpec 的一些参考资料.希望对你有帮助
p/s: Some are from 2007, I'm not sure if the stuffs are outdated or not, but these are the some of my references used to learn RSpec. Hope it helps
上一篇:获取单选按钮值从Android的自定义列表自定义、单选、按钮、列表
下一篇:authlogic flash[:notice] 没有出现在黄瓜 webrat 步骤中出现在、黄瓜、步骤、flash