Cucumber and Rspec

北城以北 提交于 2019-12-06 02:53:40

问题


Can anyone suggest me good source (Easy examples) for cucumber and rspec tutorials (rails 3)???

Edit:

Actually I am looking for free online resources with good examples..


回答1:


I think the RSpec Book is an excellent resource on Cucumber, RSpec and BDD.




回答2:


Agree - the RSpec Book provides a wealth of information. I found getting the flow was a big problem in the learning. The book gives you the quick intro, then dives into details and by the time you surface your head will be swimming. It takes a couple of goes of reading the book to get the finer points.

Another great read is a blog post by Sarah Mei called Outside-In BDD. This dialog really help to make things gel since it's demonstrating the application of Cucumber/Rspec in the context of the flow a developer would go through.

Then there is the classics such as the Railscast from Ryan Bates. There are a couple of episodes on Cucumber and other tools and the snippets give you a nice overview after you've soaked up the RSpec book.




回答3:


For Rspec you can read the Michael Hartl book "Rails 3 tutorial" there is a lot of testing examples : Here the online book

For cucumber, you can watch teachmetocode screencasts (website) . There are good examples using cucumber when building an application from scratch.

Hope it could help!




回答4:


Screencast walk-throughs can be good sources to grok them

Peepcode has a few, like this one on Cucumber, which has been updated this year - so I'm assuming it's good for rails 3



来源:https://stackoverflow.com/questions/5180930/cucumber-and-rspec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!