Roy Osherove

Roy Osherove is one of the original ALT.NET organizers and previously worked at Typemock as a chief architect. He consults and trains teams worldwide on the gentle art of unit testing and test-driven development, and he teaches team leaders how to lead better at 5whys.com. Roy tweets at @RoyOsherove and has many videos about unit testing at ArtOfUnitTesting.com. He can also be booked for talks and training at Osherove.com.

books & videos by Roy Osherove

Unit Testing and Test Driven Development

  • Course duration: 1

The methodologies for approaching programming through testing.

Understanding Mock Objects

  • Course duration: 1

Differences between mocks and stubs and why you shouldn't mock everything.

The Art of Unit Testing, Third Edition

  • February 2024
  • ISBN 9781617297489
  • 288 pages
  • printed in black & white
  • Available translations: Russian

The Art of Unit Testing, Third Edition shows you how to create readable and maintainable tests. It goes well beyond basic test creation into organization-wide test strategies, troubleshooting, working with legacy code, and “merciless” refactoring. You’ll love the practical examples and familiar scenarios that make testing come alive as you read. This third edition has been updated with techniques specific to object-oriented, functional, and modular coding styles. The examples use JavaScript.

Elastic Leadership

  • October 2016
  • ISBN 9781617293085
  • 240 pages
  • printed in black & white
  • Available translations: Japanese

Elastic Leadership is a practical, experience-driven guide to team leadership. In it, you'll discover a set of values, techniques, and practices to lead your team to success. First, you'll learn what elastic leadership is and explore the phases of this results-oriented framework. Then, you'll see it in practice through stories, anecdotes, and advice provided by successful leaders in a variety of disciplines, all annotated by author and experienced team leader, Roy Osherove.

The Art of Unit Testing, Second Edition

  • November 2013
  • ISBN 9781617290893
  • 292 pages
  • printed in black & white
  • Available translations: Complex Chinese, German

You know you should be unit testing, so why aren't you doing it? If you're new to unit testing, if you find unit testing tedious, or if you're just not getting enough payoff for the effort you put into it, keep reading.

The Art of Unit Testing, Second Edition guides you step by step from writing your first simple unit tests to building complete test sets that are maintainable, readable, and trustworthy. You'll move quickly to more complicated subjects like mocks and stubs, while learning to use isolation (mocking) frameworks like Moq, FakeItEasy, and Typemock Isolator. You'll explore test patterns and organization, refactor code applications, and learn how to test "untestable" code. Along the way, you'll learn about integration testing and techniques for testing with databases.

The Art of Unit Testing

  • May 2009
  • ISBN 9781933988276
  • 320 pages
  • printed in black & white

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.