• Complain

Lasse Koskela - Effective Unit Testing: A guide for Java Developers

Here you can read online Lasse Koskela - Effective Unit Testing: A guide for Java Developers full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2013, publisher: Manning Publications, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Lasse Koskela Effective Unit Testing: A guide for Java Developers
  • Book:
    Effective Unit Testing: A guide for Java Developers
  • Author:
  • Publisher:
    Manning Publications
  • Genre:
  • Year:
    2013
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Effective Unit Testing: A guide for Java Developers: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Effective Unit Testing: A guide for Java Developers" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Summary

Effective Unit Testing is written to show how to write good teststests that are concise and to the point, expressive, useful, and maintainable. Inspired by Roy Osheroves bestselling The Art of Unit Testing, this book focuses on tools and practices specific to the Java world. It introduces you to emerging techniques like behavior-driven development and specification by example, and shows you how to add robust practices into your toolkit.

About Testing

Test the components before you assemble them into a full application, and youll get better software. For Java developers, theres now a decade of experience with well-crafted tests that anticipate problems, identify known and unknown dependencies in the code, and allow you to test components both in isolation and in the context of a full application.

About this Book

Effective Unit Testing teaches Java developers how to write unit tests that are concise, expressive, useful, and maintainable. Offering crisp explanations and easy-to-absorb examples, it introduces emerging techniques like behavior-driven development and specification by example.

Programmers who are already unit testing will learn the current state of the art. Those who are new to the game will learn practices that will serve them well for the rest of their career.

Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.

About the Author

Lasse Koskela is a coach, trainer, consultant, and programmer. He hacks on open source projects, helps companies improve their productivity, and speaks frequently at conferences around the world. Lasse is the author of Test Driven, also published by Manning.

Whats Inside
  • A thorough introduction to unit testing
  • Choosing best-of-breed tools
  • Writing tests using dynamic languages
  • Efficient test automation
Table of Contents
    PART 1 FOUNDATIONS
  1. The promise of good tests
  2. In search of good
  3. Test doubles
  4. PART 2 CATALOG
  5. Readability
  6. Maintainability
  7. Trustworthiness
  8. PART 3 DIVERSIONS
  9. Testable design
  10. Writing tests in other JVM languages
  11. Speeding up test execution

Lasse Koskela: author's other books


Who wrote Effective Unit Testing: A guide for Java Developers? Find out the surname, the name of the author of the book and a list of all author's works by series.

Effective Unit Testing: A guide for Java Developers — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Effective Unit Testing: A guide for Java Developers" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Effective Unit Testing:
An administrative guide for Java Developers
Lasse Koskela

Effective Unit Testing A guide for Java Developers - image 1

Copyright

For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact

Special Sales Department Manning Publications Co. 20 Baldwin Road PO Box 261 Shelter Island, NY 11964 Email: orders@manning.com

2013 by Manning Publications Co. All rights reserved.

No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps.

Picture 2Recognizing the importance of preserving what has been written, it is Mannings policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine.
Picture 3Manning Publications Co.Development editor:Frank Pohlman
20 Baldwin RoadCopyeditor:Benjamin Berg
PO Box 261Technical proofreader:Phil Hanna
Shelter Island, NY 11964Proofreader:Elizabeth Martin
Typesetter:Dottie Marsico
Cover designer:Marija Tudor

ISBN 9781935182573

Printed in the United States of America

1 2 3 4 5 6 7 8 9 10 MAL 18 17 16 15 14 13

Dedication
Few sights are as captivating as the pure joy of learning new things.
Brief Table of Contents
Table of Contents
Preface

On the night of June 10, 2009, I found an email in my inbox from Christina Rudloff from Manning, asking me if I knew anyone who might be a good candidate to write a Java edition of Roy Osheroves book, The Art of Unit Testing in .NET. I told her Id do it.

That was a long time ago and what youre looking at right now has very little in common with Roys book. Let me explain.

The project started as a straight translation from .NET to Java, only rewriting where necessary to match the changing technology platform, its tooling, and its audience. I finished the first chapter, the second chapter, the third chapter, and suddenly I found myself rewriting not just short passages but entire chapters. The tone of voice wasnt mine; sometimes I would disagree or have preferences incompatible with Roys, and sometimes I simply felt strongly about saying something, setting things straight, and putting a stake into the ground.

Eventually, I decided to start over.

It was clear that we were not in a translation project. This was a brand new title of its owna book that helps a Java programmer improve his tests, gaining a deeper insight into what makes a test good and what kind of pitfalls to look out for. You can still see Roys thinking in many ways in this book. For instance, the chapter titles of the catalog in was written largely thanks to Roys counterpart in The Art of Unit Testing in .NET.

This is a book for the Java programmer. Yet, I didnt want to straitjacket the ideas in this book artificially, so I tried to steer away from being too language-specific even though all of the code examples in the pattern catalog, for example, are Java. Writing good tests is a language-agnostic problem and I heartily recommend you read this book thoughtfully, even if you happen to spend most of your office hours hacking on another programming language.

Along those same lines, I didnt want to give you a tutorial on JUnit or my favorite mock object library. Aside from such technology being a constantly changing landscape and bound to become stale information within months of publication, I wanted to write the kind of book that I would want to read. I like focused books that dont force me to lug around dead weight about a testing framework I already know by heart or a mock object library I dont use. For these reasons, Ive tried to minimize the amount of technology-specific advice. There is some but I want you to know that Ive done my best to keep it to a minimumjust enough to have meaningful conversations about the underlying concepts that I find essential in writing, running, maintaining, and improving tests.

I tried to write the book I wouldve wanted to read. I hope you will enjoy it and, most importantly, integrate some of these ideas into your own practice.

Acknowledgments

When I signed up to write this book I thought itd be a short project. Everything was supposed to be straightforward with no wildcards in sight. I shouldve known better. My wishful thinking was shattered as weeks turned to months and months turned to years. Without the help of many, many people this book would definitely not be in your hands and most likely itd still be a work-in-progress.

From the moment this project was initiated in a casual email exchange with Manning Publications Christina Rudloff, a massive amount of help has poured in and all of it has been very much appreciatedand needed.

Id like to thank the team at Manning for their support and persistence. In no specific order, Michael Stephens, Elle Suzuki, Steven Hong, Nick Chase, Karen Tegtmeyer, Sebastian Stirling, Candace M. Gillhoolley, Maureen Spencer, Ozren Harlovic, Frank Pohlmann, Benjamin Berg, Elizabeth Martin, Dottie Marsico, Janet Vail, and Mary Piergies.

A special thanks goes to the fine individuals that served as domain experts or reviewers and contributed their time to put their specific experience and expertise to improving this book. Again, in no specific order, Id like to extend my most sincere gratitude to Jeremy Anderson, Christopher Bartling, Jedidja Bourgeois, Kevin Con-away, Roger Cornejo, Frank Crow, Chad Davis, Gordon Dickens, Martyn Fletcher, Paul Holser, Andy Kirsch, Antti Koivisto, Paul Kronquist, Teppo Kurki, Franco Lombardo, Saicharan Manga, Dave Nicolette, Gabor Paller, J. B. Rainsberger, Joonas Reynders, Adam Taft, Federico Tomassetti, Jacob Tomaw, Bas Vodde, Deepak Vohra, Rick Wagner, Doug Warren, James Warren, Robert Wenner, Michael Williams, and Scott Sauyet. Special thanks to Phil Hanna for his technical review of the manuscript just before it went into production.

And last, but definitely not least, Id like to thank my family for their continued support. I imagine it has at times felt like a never-ending endeavor to get this book to print. Thank you for understanding all of those late nights with a computer on my lap and for carrying me through the rough spots.

About this Book

Developer testing has been increasing its mindshare significantly among Java developers over the past 10 years or so. Today, no computer science student graduates without having at least read about automated unit tests and their importance in software development. The idea is simpleto ensure that our code works and keeps workingbut the skill takes significant effort to learn.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Effective Unit Testing: A guide for Java Developers»

Look at similar books to Effective Unit Testing: A guide for Java Developers. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Effective Unit Testing: A guide for Java Developers»

Discussion, reviews of the book Effective Unit Testing: A guide for Java Developers and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.