Richie

Sometimes at night when I look up at the stars, and see the whole sky just laid out there, don't you think I ain't remembering it all. I still got dreams like anybody else, and ever so often, I am thinking about how things might of been. And then, all of a sudden, I'm forty, fifty, sixty years old, you know?

关于测试驱动开发

InfoQ: Bob大叔谈测试驱动开发的适用性

对测试驱动的运用,最明显的几个感觉是:
1. 品质保证方面的改善。正如Bob Martin所说,几乎不用或者很少使用调试功能了
2. 对设计的帮助
    2.1 top-down的设计方式有利于分离关注点,逐步细化,但没有看到整个机制具体是如何运作之前,的确有很多问题漏考虑,top-down之时也经常容易被其他各种问题打断,使设计思路变得凌乱。测试驱动使得top-down的运用变得很清晰、明确,有利于改善设计过程、提高设计质量,使设计、开发过程更顺畅
    2.2 测试先行的原则,确保先明确use case,再考虑具体设计和实现。首先明确use case本是设计的基本原则,但实际情况中却常不由自主的违背这个原则
3. 对开发、维护过程的作用。todo list加上test,在设计、开发、维护过程中,不管中间间断1天、1个星期,都可以快速的让人切入到上次工作的上下文中

posted on 2009-11-11 20:28  riccc  阅读(552)  评论(0编辑  收藏  举报

导航