好书推荐 好书速递 排行榜 读书文摘

Test Driven Development

Test Driven Development
作者:Kent Beck
副标题:By Example
出版社:Addison-Wesley Professional
出版年:2002-11
ISBN:9780321146533
行业:其它
浏览数:27

内容简介

Quite simply, test-driven development is meant to eliminate fear in application development. While some fear is healthy (often viewed as a conscience that tells programmers to "be careful!"), the author believes that byproducts of fear include tentative, grumpy, and uncommunicative programmers who are unable to absorb constructive criticism. When programming teams buy into TDD, they immediately see positive results. They eliminate the fear involved in their jobs, and are better equipped to tackle the difficult challenges that face them. TDD eliminates tentative traits, it teaches programmers to communicate, and it encourages team members to seek out criticism However, even the author admits that grumpiness must be worked out individually! In short, the premise behind TDD is that code should be continually tested and refactored. Kent Beck teaches programmers by example, so they can painlessly and dramatically increase the quality of their work.

......(更多)

作者简介

Kent Beck consistently challenges software engineering dogma, promoting ideas like patterns, test-driven development, and Extreme Programming. Currently affiliated with Three Rivers Institute and Agitar Software, he is the author of many Addison-Wesley titles.

......(更多)

目录

Preface

Acknowledgments

Introduction

PART I. The Money Example

Chapter 1. Multi-Currency Money

Chapter 2. Degenerate Objects

Chapter 3. Equality for All

Chapter 4. Privacy

Chapter 5. Franc-ly Speaking

Chapter 6. Equality for All, Redux

Chapter 7. Apples and Oranges

Chapter 8. Makin' Objects

Chapter 9. Times We're Livin' In

Chapter 10. Interesting Times

Chapter 11. The Root of All Evil

Chapter 12. Addition, Finally

Chapter 13. Make It

Chapter 14. Change

Chapter 15. Mixed Currencies

Chapter 16. Abstraction, Finally

Chapter 17. Money Retrospective

PART II. The xUnit Example

Chapter 18. First Steps to xUnit

Chapter 19. Set the Table

Chapter 20. Cleaning Up After

Chapter 21. Counting

Chapter 22. Dealing with Failure

Chapter 23. How Suite It Is

Chapter 24. xUnit Retrospective

PART III. Patterns for Test-Driven Development

Chapter 25. Test-Driven Development Patterns

Chapter 26. Red Bar Patterns

Chapter 27. Testing Patterns

Chapter 28. Green Bar Patterns

Chapter 29. xUnit Patterns

Chapter 30. Design Patterns

Chapter 31. Refactoring

Chapter 32. Mastering TDD

Appendix I. Influence Diagrams

Appendix II. Fibonacci

Afterword

Index

......(更多)

读书文摘

测试驱动开发的过程,大体上可以归纳为几个步骤: (1)快速新增一个测试。 (2)运行所有的测试,发现最新的测试不能通过。 (3)做一些小小的改动。 (4)运行所有的测试,并且全部通过。 (5)重构代码,以消除重复设计,优化设计结构。

在测试驱动开发中,我们要这么做: - 只有自动测试失败时,我们才重写代码 - 消除重复设计,优化设计结构 不可运行/可运行/重构——这就是测试驱动开发的口号。

......(更多)

猜你喜欢

点击查看