|
2007-1-10 10:44:40
读者
:
tigerchamp
-
【翻译】极好的参考书
|
【原书链接】 http://www.amazon.com/gp/product/1932394230/sr=1-1/qid=1155780761/ref=sr_1_1/104-5159438-8783902?ie=UTF8&s=books 【原书评内容】 After youve mastered the basics of JUnit, this book is the book to get. However, even if youre new to JUnit, this is still an excellent book to get, as the first few chapters will get you
acquainted with JUnit, such as setting it up, and with some simple, basic tests to get you started. The rest of the book contains the most valuable and useful information that you can apply to your projects. They describe
the more complex situations/environments (J2EE application server, standalone, etc.) that you encounter everyday and how to
write tests for each situation. It is these chapters that will have you coming back for more, when youre stumped on how to
write a JUnit test for your specific problem. Junit Recipes also gives you tips on organizing your tests, testing legacy code, and much more. Each recipe is written in a
similar format, describing the problem, background, and finally, the recipe itself, making this book easy to read. This
book definitely belongs on your desk at work (or your bookshelf at home) -- it comes in handy when you are having trouble
coming up with tests for difficult situations. I highly recommend it if you would like to learn how to write better tests
and learn how to test code in complex environments. 【翻译书评】 在你掌握了JUnit基础以后,你应该拥有这本书。 其实,即使你刚接触JUnit,这仍然是一本值得购买的书,因为本书的前几章会使你了解JUnit,知道如何安装,并通过一些简单、基础的例
子开始学习。 书的其他部分包含有极具价值,十分有用的内容,你可以应用到你的项目中去。书中描述了十分复杂的,你每天都可能遇到的情形及环境
(J2EE应用服务器,独立运行等),并告诉你如何针对每种情况去写测试用例。这些章节十分有用,在你被一个特别的问题难住而不知道如何
写JUnit用例的时候,你会经常回来翻翻它们。 Junit Recipes还告诉你很多关于如何组织你的测试,如何测试遗留代码等其他很多方面的技巧。每一个“处方”都用相似的方式给出:首先
描述问题,背景,然后是解决方法。这使得这本书非常易于阅读。这绝对是一本你应该放在案头的书(或者是你家里的书架上)--这样当你遇到复杂的情况而不知道如何写用例的时候就可以随时得到帮助。我极力推荐这本书,如果你希望学习如何写好的测试用例,以及如何在复杂的环境中测试代码。 【译者】Tigerchamp(http://www.pball.cn)
|
发表评论
我赞同(0人)
我反对(2人) 回复评论
|
|
正在读取本评论的讨论,请稍侯……
|
|
|
2007-1-3 17:20:17
读者
:
tigerchamp
-
【翻译】请把这本书与Knuth及GoF的书放在一起
|
【原书链接】 http://www.amazon.com/gp/product/1932394230/sr=1-1/qid=1155780761/ref=sr_1_1/104-5159438-8783902?ie=UTF8&s=books 【原书评内容】 This isnt necessarily the best introduction for absolute beginners (I would recommend /Pragmatic Unit Testing/ for that), but it is required reading for server-side Java, as most other reviewers have pointed out. But its more than that--its one of those rare computer books that transcends its subject matter. Why? Because it can make you a better programmer. While some of the credit can rightly be given to unit testing and Test-Driven Development in general, Rainsbergers book makes you /see/ better ways to write and refactor your code. The breadth and depth of examples is astonishing--he convincingly shatters 'but its too hard to test that' arguments with well-researched, non-trivial examples. In fact, Id say that this is almost a better J2EE tutorial than most books about J2EE proper. Im withholding a star for one reason: the book doesnt cover GUI testing tools like Jemmy, JFCUnit, or Abbot/Costello. These JUnit extensions are ripe for a book with this depth; its just too bad that this couldnt be that book. Other than that, I find that I turn to Rainsbergers book far more often than any other testing book or online reference. 【翻译书评】 这不是一本初学者的必备书(我向他们推荐《Pragmatic Unit Testing》),但却是服务端Java开发的必读书目,正象很多其他的读者说的那样。不仅如此,它是一本少有的超越了其内容主旨的计算机类书籍。为什么这么说呢?因为它会让你成为一个更好的程序员。虽然这要部分地归功于单元测试及测试驱动开发模式,但Rainsberger的书会让你了解怎样才能更好地编写或重构你的代码。书中范例的广度及深度令人赞叹--他用精心设计的,非凡的用例令人信服地粉碎了那些“这些几乎无法测试”的观点。事实上,我要说,这几乎是一本比那些严格意义上的J2EE类书籍更好的J2EE教程。 我只给了4星,是因为书里没有涵盖GUI测试工具,象Jemmy, JFCUnit, 或者Abbot/Costello。这些JUnit的扩展应该被加入到象这种深度的书里,而这本书没有,这实在是太遗憾了。除此之外,我使用这本书的频率远比其他测试书籍及在线参考多得多。 【译者】Tigerchamp(http://www.pball.cn)
|
发表评论
我赞同(0人)
我反对(2人) 回复评论
|
|
正在读取本评论的讨论,请稍侯……
|
|
|