Pragmatic Unit Testing in Java with JUnit 在线电子书 图书标签: JUnit TEST 编程 Pragmatic 技术 Programming 计算机 英文
发表于2024-11-22
Pragmatic Unit Testing in Java with JUnit 在线电子书 pdf 下载 txt下载 epub 下载 mobi 下载 2024
还行。只是一本小书,介绍了Unit Test的思想以及使用的基本工具。写得还不错。
评分清晰明了,就是JUnit版本较老。
评分开始用Junit的时候可以看一下
评分清晰明了,就是JUnit版本较老。
评分还行。只是一本小书,介绍了Unit Test的思想以及使用的基本工具。写得还不错。
Andrew Hunt和David Thomas是Pragmatic Programmers的合伙人。他们不但为客户开发复杂的软件系统,而且为开发者和项目经理提供具有实务的各种资源。他们的第一本书《程序员修炼之道——从小工到专家》(The Pragmatic Programmer:From jouneyman to master)是面向技术和实践的畅销书籍,旨在让编码过程更加高效和有趣。
Learn how to improve your Java coding skills using unit testing. Despite it's name, unit testing is really a coding technique, not a testing technique. Unit testing is done by programmers, for programmers. It's primarily for our benefit: we get improved confidence in our code, better ability to make deadlines, less time spent in the debugger, and less time beating on the code to make it work correctly. This book shows how to write tests, but more importantly, it goes where other books fear to tread and gives you concrete advice and examples of what to test--the common things that go wrong in all of our programs. Discover the tricky hiding places where bugs breed, and how to catch them using the freely available JUnit framework. It's easy to learn how to think of all the things in your code that are likely to break. We'll show you how with helpful mnemonics, summarized in a handy tip sheet (also available from our www.pragmaticprogrammer.com website) to help you remember all this stuff. With this book you will:
Write better code, and take less time to write it
Discover the tricky places where bugs breed
Learn how to think of all the things that could go wrong
Test individual pieces of code without having to include the whole project
Test effectively with the whole team We'll also cover how to use Mock Objects for testing, how to write high quality test code, and how to use unit testing to improve your design skills. We'll show you frequent "gotchas"--along with the fixes--to save you time when problems come up. We'll show you how with helpful mnemonics, summarized in a handy tip sheet (also available from our www.pragmaticprogrammer.com website). But the best part is that you don't need a sweeping mandate to change your whole team or your whole company. You don't need to adopt Extreme Programming or Test-Driven Development, or change your development process in order to reap the proven benefits of unit testing. You can start unit testing, the pragmatic way, right away.
对OOP有一定理解的读者一定会发现,本书没有讲到单元测试的精髓。什么是单元测试的精髓呢?我认为是测试类的内聚性。举个例子:stack类的push和pop方法就是一种高内聚,它们的组合才有stack体现出FILO的性质。单元测试的目标不是孤立地测试push和pop,而是测试FILO性质。 单元...
评分一个高质量的程序离不开测试,一个高质量的java程序更不可能会没有JUnit测试,此书讲解如何通过JUnit来进行测试,阐述了单元测试带来的好处。 个人认为,好的团队应该坚持为自己写的代码添加测试程序。提高程序的质量和团队成员的势气、信心。 最后,值得一读:)
评分对OOP有一定理解的读者一定会发现,本书没有讲到单元测试的精髓。什么是单元测试的精髓呢?我认为是测试类的内聚性。举个例子:stack类的push和pop方法就是一种高内聚,它们的组合才有stack体现出FILO的性质。单元测试的目标不是孤立地测试push和pop,而是测试FILO性质。 单元...
评分这本书的定位是Junit的入门书籍,我用Junit差不多有五年的时间了,因此大部分的概念对我而言都并不陌生。我所在的项目组对产品代码覆盖率要求非常高,要写非常多测试代码来验证功能。 大概用了一下午的时间,快速的翻了翻这本书,记了些笔记。总体感觉大概就是可以做junit的user...
评分这本书只有170多页,让你能够在短时间内了解如何使用JUnit进行单元测试,而不必啃着大部头还带着挫折感,是学习Junit的首选入门书籍。作者首先告诉你单元测试的重要性,然后手把手教你如何使用Junit进行简单的单元测试,最后以自己的经验告诉读者好的测试应该具有怎样的品质。...
Pragmatic Unit Testing in Java with JUnit 在线电子书 pdf 下载 txt下载 epub 下载 mobi 下载 2024