The Art of Unit Testing
Cart 0
Cart 0

This expanded edition teaches mocks, stubs and dependency injection in functional, modular and object oriented style.

The Art of Unit Testing, 3rd Edition

with Examples in JavaScript

The Art of Unit Testing, Third Edition updates an international bestseller to reflect modern development tools and practices.

You'll explore test patterns and organization, working with legacy code, and even "untestable" code. The many tool-agnostic examples are presented in JavaScript, and are carefully designed so that they apply to code written in any language.

 

Choose Your Language

 
 

TDD & Unit Testing in C#

Learn how to write your first test with NUnit or XUnit, learn about mocks, stubs and fakes with isolation frameworks such as FakeItEasy & NSubstitute, and refactor legacy code so you can test it easily.

TDD & Unit Testing in Modern JS

Learn to write unit tests for async and observable code, as well as methods of faking functions, modules and other types of dependencies. You'll explore test patterns and organization, working with legacy code, and even "untestable" code.

TDD in Java with JUnit 5

Learn about the practices of TDD, and use JUnit 5 to test driven new functionality. On the way you’ll learn about readability, maintainability & trustworthy tests.

 

TDD in Kotlin

Start learning the skills of unit testing and TDD in Kotlin with Kotlin-Test, JUnit 5 & mockk.

Services by Roy Osherove

Roy_Pic_BW.jpg

I’m the founder of Legato Labs, author of The Art of Unit Testing and also created the String Calculator Kata. I consult & train teams on various engineering practices & related topics such as:

 

  • On-Site Training

  • On-Site Coaching/Consulting/Pairing

  • Remote Test Reviews

  • Public Training

Testimonials

Rarely are subject experts also great teachers, Roy is the whole package.
— Blake Rhodes, Software Engineer
Very exciting course with precise balance between theory and practice. Roy is an extremely good listener making me not hesitate to get all the answers I need in a very clear way.

Even if you have experience with TDD, I highly recommend his TDD Mastery Training.
— Diego Faria, Software Engineer
Roy is an excellent speaker with a good pace on his course. I will definitely implement what I learn.
— Marcio Carneiroreis
Perfect course, liked the content and educational guidance! Recommend it highly!
— Marco Pasopas
Great course for junior/mid level specialists wanting to start changing their thinking to TDD way of thinking.
— Aleksandras Gavinciuk