Jump to ratings and reviews
Rate this book

Starting to Unit Test: Not as Hard as You Think

Rate this book
Unit testing. You've heard the term. Probably a lot. You know you should probably figure out how it works, since everyone's always talking about it and a lot of companies require developers to know it. But you don't really know it and you're worried that you'll look uninformed if you cop to not knowing it. Well, relax. This book assumes you have absolutely no idea how it works and walks you through the practice from the very beginning.You'll learn the basics, but more importantly, you'll learn the business value, the path to walk not to get frustrated, what's testable and what isn't, and, and everything else that a practical unit testing newbie could possibly want to know.

104 pages, Kindle Edition

First published May 22, 2014

22 people are currently reading
128 people want to read

About the author

Erik Dietrich

8 books8 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
36 (46%)
4 stars
28 (35%)
3 stars
13 (16%)
2 stars
1 (1%)
1 star
0 (0%)
Displaying 1 - 5 of 5 reviews
Profile Image for Lorenzo.
1 review1 follower
August 28, 2017
The book is a nice introduction on how to adopt Unit Tests in your daily work. Useful are the suggestions related on how to deal with legacy code and to introduce Unit Tests in a working environment that does not want to switch mentality. Even if the examples (code snippets) are very simple, you can have a clear idea of the presented concepts. The introduction on Test Doubles is quite superficial.
3 reviews
June 25, 2022
The discussion of the "Advanced Beginner" struck many a chord with me, as did the other real world examples and scenarios. I'd read the Uncle Bob books and watched the Pluralsight videos but this book gave me the final nudge to get stuck in and start doing unit testing. A very worthwhile read, thank you, Erik Dietrich!
Profile Image for Aidar Samerkhanov.
20 reviews
March 22, 2018
The book is a good start point for people who have never heard about unit testing. Simple examples, simple explanation.
For those who have used unit tests already, reading can be boring.
Profile Image for Luca Bernardi.
6 reviews15 followers
January 29, 2017
That's probably one of the best book about testing I've read in a while.

What I really appreciated about the book is that the author is not judgemental, but actually start from a position that if you have ever worked with legacy code you can easily relate.

The book is short but focused with a lot of practical advices. I really appreciated the chapter about how to modify (or not modify) legacy code to make it more testable and in generale make it better code.
Profile Image for Christopher Pink.
5 reviews2 followers
January 7, 2016
Well written. The only thing I could find at the time to help me wrap my head around unit testing. Highly recommended.
Displaying 1 - 5 of 5 reviews

Can't find what you're looking for?

Get help and learn more about the design.