Art Of Unit Testing (The Samurai Book)– Get it now, it’s done. - ISerializable - Roy Osherove's Blog

Art Of Unit Testing (The Samurai Book)– Get it now, it’s done.

The time has actually come. After 2.5 years, and two kids, my book is finally done and is available in full form as an EBook. at the end of the month it will be in print form. Now would be the time to get it, when it is still at a “pre-order” pricing. Get the preorder price either at Manning(along with the EBook) or at the amazon page.

I love the cover image. How about we call this “The Samurai book” from now on?

This is the book that I wished I had when I started out writing my first tests, and that combines my knowledge about unit testing from the past 5-6 years or so working with companies on real projects (and real failures).

It contains things I have not seen in other places – writing readable, maintainable and trustworthy tests, as well as guidelines on how to review someone else’s tests and what to watch out for.

image

 

I was lucky to have the foreword written by no other than Michael-Legacy-Code-Feathers himself, and with some great quotes including one from Kent Beck about the book.

 

Here is the Table of Contents.

Free Chapters

The book comes with two free chapters:

Chapter 1 The basics of unit testing(PDF)

Chapter 3 Using Stubs to Break Dependencies (PDF)

Or get the full book

Book description:

Unit testing, done right, can mean the difference between a failed project and a successful one, between a maintainable code base and a code base that no one dares touch, and between getting home at 2 AM or getting home in time for dinner, even before a release deadline.

The Art of Unit Testing builds on top of what's already been written about this important topic. It guides you step by step from simple tests to tests that are maintainable, readable, and trustworthy. It covers advanced subjects like mocks, stubs, and frameworks such as Typemock Isolator and Rhino Mocks. And you'll learn about advanced test patterns and organization, working with legacy code and even untestable code. The book discusses tools you need when testing databases and other technologies. It's written for .NET developers but others will also benefit from this book.

What’s inside:

  • Test Review Guidelines
  • How to create readable, maintainable, trustworthy tests
  • Stubs, mock objects, and automated frameworks
  • Working with .NET tools, including NUnit, Rhino Mocks and Typemock Isolator
Published Wednesday, May 20, 2009 5:22 PM by RoyOsherove

Comments

Wednesday, May 20, 2009 5:34 PM by David Levitt

# re: Art Of Unit Testing (The Samurai Book)– Get it now, it’s done.

Congrats man!  I look forward to checking it out!

Wednesday, May 20, 2009 9:34 PM by Oscar Centeno

# re: Art Of Unit Testing (The Samurai Book)– Get it now, it’s done.

Excellent work, Roy! Thanks for sharing so much knowledge!

Wednesday, May 20, 2009 10:33 PM by Mark Roddy

# re: Art Of Unit Testing (The Samurai Book)– Get it now, it’s done.

Congrats Roy!

Thursday, May 21, 2009 12:18 AM by Petar Repac

# re: Art Of Unit Testing (The Samurai Book)– Get it now, it’s done.

Got it 2 days ago from manning MEAP subscription. I will prepare an presentation based on this book for my team.

Congratulations for your work.

# Reflective Perspective - Chris Alcock » The Morning Brew #352

Pingback from  Reflective Perspective - Chris Alcock  » The Morning Brew #352

# Art » Art Of Unit Testing (The Samurai Book)??? Get it now, it's done …

Pingback from  Art » Art Of Unit Testing (The Samurai Book)??? Get it now, it's done …

Thursday, May 21, 2009 8:54 AM by Taswar Bhatti

# re: Art Of Unit Testing (The Samurai Book)– Get it now, it’s done.

Congratulations really enjoyed reading your book.

Got a review of it also on my blog, I like the circles at the beginning of each chapters and the guidelines at the end.

taswar.zeytinsoft.com

Thursday, May 21, 2009 10:27 AM by Steve Smith

# re: Art Of Unit Testing (The Samurai Book)– Get it now, it’s done.

Congratulations!  I'm ordering it today!

Thursday, May 21, 2009 3:18 PM by DotNetShoutout

# Art Of Unit Testing (The Samurai Book)– Get it now, it’s done. - Roy Osherove

Thank you for submitting this cool story - Trackback from DotNetShoutout

Friday, May 22, 2009 10:30 PM by ComponentGear.com Feed

# This Week on C9: VS 2010 Beta 1, Windows API Code Pack, & a WPF Jukebox

This week on Channel 9, Dan and Brian discuss the top developer news, including: - Visual Studio 2010

# This Week on C9: VS 2010 Beta 1, Windows API Code Pack, & a WPF Jukebox | Tech-monkey.info Blogs

Pingback from  This Week on C9: VS 2010 Beta 1, Windows API Code Pack, & a WPF Jukebox | Tech-monkey.info Blogs

# This Week on C9: VS 2010 Beta 1, Windows API Code Pack, & a WPF Jukebox | CHARGED's Digital Lifestyle at Work or Play

Pingback from  This Week on C9: VS 2010 Beta 1, Windows API Code Pack, & a WPF Jukebox | CHARGED's Digital Lifestyle at Work or Play

Wednesday, May 27, 2009 1:05 AM by Preston

# re: Art Of Unit Testing (The Samurai Book)– Get it now, it’s done.

Looks like an informative book. Will need to get hold of it.

Tuesday, June 02, 2009 11:36 PM by Duncan

# re: Art Of Unit Testing (The Samurai Book)– Get it now, it’s done.

For those of us who bought early, is it possible to get an update?

Monday, June 29, 2009 5:11 PM by Josh Korn

# re: Art Of Unit Testing (The Samurai Book)– Get it now, it’s done.

Roy:

Please add a short phrase to the "get the full book" link to the effect that it's available from the publisher in eBook form (in addition to hardcover/paperback, etc).

That's a major boon to people who (like me) would otherwise have to wait DAYS in order to get it in their hands. With the book in PDF form, I can start doing some learning today!

Regards

Josh

(Ottawa, Ontario)

Tuesday, July 07, 2009 1:26 PM by Dot Net Nerd

# Unit Testing

Unit Testing