00Official Book Site
The Art of Unit Testing, 3rd Edition
with Examples in JavaScript. Roy Osherove · Manning
This expanded edition teaches mocks, stubs and dependency injection in functional, modular and object oriented style.
Print + ebook from Manning · Buy links go to Manning and include Roy’s affiliate code.
01The book
The 3rd edition
The Art of Unit Testing, Third Edition (opens in a new tab) 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.
02Workshops
Choose Your Language
Hands-on unit testing and TDD training with Roy, in the language your team writes.
-
3-day hands-on workshop
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.
-
3-day hands-on workshop
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.
-
3-day hands-on workshop
TDD in Java with JUnit 5
Learn about the practices of TDD, and use JUnit 5 to test-drive new functionality. On the way you’ll learn about readability, maintainability & trustworthy tests.
-
3-day hands-on workshop
TDD in Kotlin
Start learning the skills of unit testing and TDD in Kotlin with Kotlin-Test, JUnit 5 & mockk.
03Free resources
Start here
-
Article
Definition of a unit test
What a “unit of work” is, and the ten properties of a good unit test.
-
Checklist
Test Review Guidelines
Review every piece of test code for readability, maintainability and trust.
-
Videos
Pair Programming
Eleven videos of Roy and Raymond Lim test-driving a Go game engine.
-
Kata
String Calculator Kata (opens osherove.com in a new tab)
The classic TDD kata Roy created, on osherove.com.
04Work with Roy
Services by Roy Osherove
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:
- Unit Testing & Test Driven Development
- Refactoring & Clean Code
- Continuous Delivery, pipelines & visibility dashboards
- Team Metrics & KPIs such as cycle time, Mean time to Recovery, Escaped Bugs, Red-To-Green time, Main-Merge-Time and more.
- 01On-Site Training (opens in a new tab)
- 02On-Site Coaching/Consulting/Pairing
- 03Remote Test Reviews
- 04Public Training
05Testimonials
From workshop attendees
Rarely are subject experts also great teachers, Roy is the whole package.
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.
Roy is an excellent speaker with a good pace on his course. I will definitely implement what I learn.
Perfect course, liked the content and educational guidance! Recommend it highly!
Great course for junior/mid level specialists wanting to start changing their thinking to TDD way of thinking.
06Contact
Bring a workshop to your team
Training, coaching or remote test reviews: send Roy a message.