The RSpec Book

David Chelimsky

出版时间

2010-04-30

ISBN

9781934356371

评分

★★★★★
书籍介绍

Behaviour Driven Development is about writing software that matters. It is an approach to agile software development that takes cues from Test Driven Development, Domain Driven Design, and Acceptance Test Driven Planning.

RSpec and Cucumber are the leading Behaviour Driven Development tools in Ruby. RSpec supports Test Driven Development in Ruby through the BDD lens, keeping your focus on design and documentation while also supporting thorough testing and quick fault isolation. Cucumber, RSpec's steadfast companion, supports Acceptance Test Driven Planning with business-facing, executable requirements documentation that helps to ensure that you are writing relevant software targeted at real business needs.

The RSpec Book will introduce you to RSpec, Cucumber, and a number of other tools that make up the Ruby BDD family. Replete with tutorials and practical examples, the RSpec Book will help you get your BDD on, taking you from executable requirements to working software that is clean, well tested, well documented, flexible and highly maintainable.

David Chelimsky is the lead developer/maintainer of RSpec. He has been developing software for nearly a decade, and exploring TDD for over five of those years. After three years training and mentoring agile teams at Object Mentor, David currently leads the software development team at Articulated Man, a Chicago based, interactive design firm. In his spare time, David likes to p...

(展开全部)

用户评论
扫了一晚上,感觉略复杂呀,解决一个问题的同时又带来了很多别的问题。很怀疑真的有人去看那些 features 代码吗?管理人员应该直接看测试是否通过就 OK ,至于程序员自己,还是怎么方便怎么来比较好吧?先写 scenario ,再 step ,再写 code 很累的呀。看了 http://brandonhilkert.com/blog/7-reasons-why-im-sticking-with-minitest-and-fixtures-in-rails/ ,决定还是不用了,跟随 DHH 大神,守着 minitest 吧。
rspec虽然贴近自然语义,但是行文啰嗦,要磊的代码太多
用cucumber做BDD的好处,在于清晰地用自然语言描述出来了业务逻辑,然后映射成测试代码。这样解决了TDD业务逻辑混杂在测试代码里面的问题。但是BDD增加了语言映射到代码的层面,显得很繁琐,并不是很适合只有程序员存在的场合。
没办法,就这么一本书。凑活吧,看的我迷迷糊糊。。。
a bit overwhelming
10年的老书,blog+tutorial+api doc。直接读官网文档就够了。
Pragmatic的经典入门系列,如果把技术书分为,入门,中级(偏向性能,优化,实现),高级(主要就是优化,怎么避免坑),总结(语言特性,Design,Pattern),经典(几十年不过时的),暂时把书分为低,中,高,经典,总结,这门书属于TDD的入门书,还需要大量事件才能记住TDD中的技术实现和原理。
BDD 大法好
嗯,其实看的是 "Everyday Rails Testing with RSpec",但是豆瓣不能添加那本书,就用这本做记录吧,哈哈。
Pragmatic Bookshelf的其他书籍查看全部

收藏