Zum Hauptinhalt springen Zur Suche springen Zur Hauptnavigation springen
Beschreibung
Summary

The Art of Unit Testing, Second Edition guides you step by step from writing your first simple tests to developing robust test sets that are maintainable, readable, and trustworthy. You'll master the foundational ideas and quickly move to high-value subjects like mocks, stubs, and isolation, including frameworks such as Moq, FakeItEasy, and Typemock Isolator. You'll explore test patterns and organization, working with legacy code, and even "untestable" code. Along the way, you'll learn about integration testing and techniques and tools for testing databases and other technologies.

About this Book

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 examples in the book use C#, but will benefit anyone using a statically typed language such as Java or C++.

What's Inside
Create readable, maintainable, trustworthy testsFakes, stubs, mock objects, and isolation (mocking) frameworksSimple dependency injection techniquesRefactoring legacy code
About the Author

Roy Osherove has been coding for over 15 years, and he consults and trains teams worldwide on the gentle art of unit testing and test-driven development. His blog is at [...].

Table of Contents
PART 1 GETTING STARTEDThe basics of unit testingA first unit testPART 2 CORE TECHNIQUESUsing stubs to break dependenciesInteraction testing using mock objectsIsolation (mocking) frameworksDigging deeper into isolation frameworksPART 3 THE TEST CODETest hierarchies and organizationThe pillars of good unit testsPART 4 DESIGN AND PROCESSIntegrating unit testing into the organizationWorking with legacy codeDesign and testability
Summary

The Art of Unit Testing, Second Edition guides you step by step from writing your first simple tests to developing robust test sets that are maintainable, readable, and trustworthy. You'll master the foundational ideas and quickly move to high-value subjects like mocks, stubs, and isolation, including frameworks such as Moq, FakeItEasy, and Typemock Isolator. You'll explore test patterns and organization, working with legacy code, and even "untestable" code. Along the way, you'll learn about integration testing and techniques and tools for testing databases and other technologies.

About this Book

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 examples in the book use C#, but will benefit anyone using a statically typed language such as Java or C++.

What's Inside
Create readable, maintainable, trustworthy testsFakes, stubs, mock objects, and isolation (mocking) frameworksSimple dependency injection techniquesRefactoring legacy code
About the Author

Roy Osherove has been coding for over 15 years, and he consults and trains teams worldwide on the gentle art of unit testing and test-driven development. His blog is at [...].

Table of Contents
PART 1 GETTING STARTEDThe basics of unit testingA first unit testPART 2 CORE TECHNIQUESUsing stubs to break dependenciesInteraction testing using mock objectsIsolation (mocking) frameworksDigging deeper into isolation frameworksPART 3 THE TEST CODETest hierarchies and organizationThe pillars of good unit testsPART 4 DESIGN AND PROCESSIntegrating unit testing into the organizationWorking with legacy codeDesign and testability
Über den Autor
Roy Osherove is an internationally-recognized expert in unit testing and agile software methodology. Still an active coder, he consults and trains teams worldwide on the gentle art of unit testing and test-driven development. He is also the author of Elastic Leadership (Manning 2016). Roy’s blog is at [...].
Inhaltsverzeichnis

DESCRIPTION

Developers know they "should" be unit testing, but it can be intimidating and tedious, and they don’t always see the payoff for the effort they put into it.

The Art of Unit Testing, Second Edition is a step-by-step guide that helps reluctant developers learn how to write simple tests and leads them through developing robust test sets that are maintainable, readable, and trustworthy. Readers will explore test patterns and organization, working with legacy code, and even "untestable" code. Along the way, they’ll learn about integration testing and techniques and tools for testing databases and other technologies.

RETAIL SELLING POINTS

A step-by-step guide to unit testing Easily create readable, maintainable, trustworthy tests Great for both novice and experienced unit testers

AUDIENCE

This book is written for .NET Developers and anyone else who wants to learn unit testing.

ABOUT THE TECHNOLOGY

A unit test is an automated and repeatable piece of code that tests the smallest testable piece of software to make sure it does what it’s designed to do.

Details
Erscheinungsjahr: 2013
Fachbereich: Programmiersprachen
Genre: Importe, Informatik
Rubrik: Naturwissenschaften & Technik
Medium: Taschenbuch
Inhalt: Kartoniert / Broschiert
ISBN-13: 9781617290893
ISBN-10: 1617290890
Sprache: Englisch
Einband: Kartoniert / Broschiert
Autor: Osherove, Roy
Auflage: 2. Auflage
Hersteller: Manning Publications
Verantwortliche Person für die EU: Libri GmbH, Europaallee 1, D-36244 Bad Hersfeld, gpsr@libri.de
Maße: 235 x 189 x 22 mm
Von/Mit: Roy Osherove
Erscheinungsdatum: 12.12.2013
Gewicht: 0,617 kg
Artikel-ID: 106012712

Ähnliche Produkte