如何开始使用 Rspec?
过去 3 个月我一直在使用 Rails。 现在我想开始 BDD 或 TDD。 我想从 RSpec 开始。 我该如何开始呢?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
过去 3 个月我一直在使用 Rails。 现在我想开始 BDD 或 TDD。 我想从 RSpec 开始。 我该如何开始呢?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
您可能会对以下网站感兴趣:
The following websites may be of interest:
PragProg 有一本由 RSpec 作者自己编写的测试版书(整本书将于 6 月发货)。 我现在正在努力解决这个问题,到目前为止一切都很棒! 几周前我开始浏览 peepcode 截屏视频,莎拉·梅是对的,它们很棒。 然而,这本书在我也需要的地方(作为 BDD 的完全新手)更深入一些。
RSpec 书
PragProg has a beta book (with the full book shipping in June) by the Authors of RSpec themselves. I am working through it now and it has been fantastic so far! I started going through the peepcode screencasts a few weeks ago, and Sarah Mei is right, they are great. However the book goes a little more in depth where I needed it too (as a complete newbie to BDD myself).
The RSpec Book
如果您正在开始,您可能想尝试从 Cucumber 和 rspec 的组合开始。
Cucumber 是 rpecs 的故事运行器的更高级别集成测试替代品,面向客户端可读性。
新的 RSpec 书涵盖了如何进行由外向内的开发技术,并且黄瓜场景对于测试初学者来说感觉更加切实。
Ryan Bates 刚刚发布了黄瓜入门截屏视频(我可以'不能保证内容,因为他的文件托管目前似乎很无聊,但他所有其他视频都非常清晰)。
最近在 Mountain West Ruby Conf 上也有一次 Cucumber BDD 演讲,内容是关于 confreaks 此处。
我有一些其他黄瓜链接这里。
If you're getting started you might want to try starting with a combination of cucumber and rspec.
Cucumber, is rpecs' higher level integration testing replacement for story runner and is geared towards client readability.
The new RSpec book covers how to do the outside-in development technique and cucumber scenarios feel a lot more tangible to testing beginners IMHO.
Ryan Bates has just this moment posted a getting started with cucumber screencast (I can't vouch for the content as his file hosting seems borked at the moment but all of his other videos have been very clear).
There was also a recent cucumber BDD talk at Mountain West Ruby Conf that is on confreaks here.
I have a whack of other cucumber links here.