注册 | 登录读书好,好读书,读好书!
读书网-DuShu.com
当前位置: 首页出版图书科学技术计算机/网络软件与程序设计程序设计综合测试驱动开发实用指南(影印版)

测试驱动开发实用指南(影印版)

测试驱动开发实用指南(影印版)

定 价:¥58.00

作 者: (美)艾斯特尔斯 著
出版社: 中国电力出版社
丛编项: 原版风暴系列
标 签: 高级程序语言设计

ISBN: 9787508321936 出版时间: 2004-05-01 包装: 胶版纸
开本: 16 页数: 592 字数:  

内容简介

  让测试驱动开发(TDD)为你工作!本书将使开发人员编写的软件更简单、更干净、更可靠……一句话:更优秀!这本TDD的指南重点关注真实的项目、真实的开发人员、真实的实现问题以及真实的代码!著名的敏感捷开发专家David Astels通过使用Java和JUnit测试框架从头开始创建了一个项目,向你展示了TDD的精妙之处。你将深刻理解什么是“测试为先”、它的工作机理、其中的困难以及如何将TDD的诺言付诸实践。· 最具实用性!书中遍布了可下载的示例代码、练习题以及网上资源链接· 介绍强大的TDD工具和技术——包括关键的JUnit扩展,相关内容由它们的创建者(Scott Ambler、Time Bacon、Mike Bowler、Mike Clark、Bryan Dollery、James Newkirk、Bob Payne、Kay Pentacost和Jens Uwe Pipka)撰写·涵盖重构、意图编程(programming by Intention)、模拟对象(mock object)及更多内容· 讨论了针对C++、C#/.NET、VB6、Python、Ruby和Smalltalk的TDD框架· 介绍了以前未发表过的关于GUI软件的测试为先(test-first)技术· 附录介绍了极限编程和敏捷建模的基本知识· 面向所有程序员及项目经理

作者简介

  DavidAstels:早在1985年就开始编写软件,涉及领域从嵌入式环境控制到知识产权保护系统,直到电能交易系统。他创建了Adaption软件公司(www.adaptionsoft.com),主要提供极限编程(XP)和软件工艺(SoftwareCraftsmanship)方面的有关咨询、培训、指导和编程服务。他编辑了TheCoadLette的TDD版本,并且在极限编程和敏感捷过程的发展中起到了重要作用。同时,他也是《APracticalGuidetoeXtremeProgramming》的作者之一。

图书目录

Foreword. 
Preface. 
I. BACKGROUND. 
1. Test-Driven Development. 
What Is Test-Driven Development? Let the Computer Tell You. A Quick Example. Summary. 
2. Refactoring. 
What Is Refactoring? When to Refactor. How to Refactor. Some Important Refactorings. Refactoring to Patterns. Summary. 
3. Programming By Intention. 
Names. Simplicity. Warranted Assumptions. How to Program by Intention. “No Comment”. Summary. 
II. TOOLS AND TECHNIQUES. 
4. JUNIT. 
Architectural Overview. The Assertions. Writing a TestCase. Running Your Tests. Using setUp() and tearDown(). Using TestSuite. How Does It All Fit Together? Where Do Tests Belong? Tips. Summary. 
5. JUNITEXTENSIONS. 
Standard Extensions. Adding Missing Asserts with MockObjects. Performance and Scalability with JUnitPerf. Daedalos JUnit Extensions. Writing XML-Based Tests with xmlUnit. Gargoyle Software JUnit Extensions. 
6. JUNIT-Related Tools. 
Jester. NoUnit. Clover. Eclipse. IDEA. 
7. MockObjects. 
Mock Objects. An Illustrative Example. Uses for Mock Objects. Wouldn't It Be Nice? A Common Example. The MockObjects Framework. MockMaker. EasyMock. Summary. 
8. Developing a GUI Test-First. 
The Example. The AWT Robot. Brute Force. JFCUnit. Jemmy. Ultra-Thin GUI. Summary. 
III. A JAVA PROJECT: TEST-DRIVEN END TO END. 
9. THEPROJECT. 
Overview. User Stories and Tasks. 
10. Movie List. 
Make a Movie Container. Make a Movie List GUI. Add a Movie in the GUI. Retrospective. 
11. Movies Can Be Renamed. 
Support Movie Name Editing. Movie Rename GUI. Retrospective. 
12. Movies Are Unique. 
Movies Are Unique. Error Message on Non-Uniqueness. Retrospective. 
13. Ratings. 
Add a Single Rating to Movie. Show the Rating in the GUI. Edit the Rating. Retrospective. 
14. Categories. 
Add a Category. Show the Category in the GUI. Add a Selection of Category. Retrospective. 
15. Filter On Category. 
Get a Sublist Based on Category. Support an ALL category. Add a Category Selector to the GUI. Handle Changing a Movie's Category. Interface Cleanup. Retrospective. 
16. Persistence. 
Write to a Flat File. Save-As in GUI. Save in GUI. Read from a Flat File. Load in GUI. Retrospective. 
17. Sorting. 
Compare Movies. Sort a MovieList. Ask a MovieListEditor for Sorted Lists. Add a Way to Sort to the GUI. Retrospective. 
18. Multiple Ratings. 
Multiple Ratings. Rating Source. Revised Persistence. Show Multiple Ratings in the GUI. Add a Rating in the GUI. Remove the Single-Rating Field. Retrospective. 
19. Reviews. 
Add a Review to Ratings. Save Review. Load Review. Display Review. Add a Review. Retrospective. 
20. Project Retrospective. 
The Design. Test vs Application. Test Quality. Our Use of Mocks. General Comments. Debugging. List of Tests. Summary. 
IV. XUNIT FAMILY MEMBERS. 
21. RUBYUNIT. 
22. SUNIT. 
23. CPPUNIT. 
24. NUNIT. 
25. PYUNIT. 
26. VBUNIT. 
V. APPENDICES. 
Appendix A: Extreme Programming. 
The Agile Revolution. eXtreme Programming. The Four Variables. The Values. The Practices. Summary. 
Appendix B: Agilemodeling. 
The Myths Surrounding Modeling. An Introduction to Agile Modeling (AM). What Are Agile Models? 
Appendix C: Online Resources. 
Forums. Information on Agile Processes. Information on Extreme Programming. JUnit-Related Software. JUnit-Related Information. Tools. Other XUnit Family Members. Companies. Miscellaneous. 
Appendix D: Answers To Exercises. 
Bibliography. 
Index. 

本目录推荐