10

Unit Testing

CONTENTS

The purpose of this chapter is to introduce tools and techniques used in unit testing. This phase of testing is often considered as the key to high quality software. There exist a variety of tools that aid the unit test process. Two such tools, namely, JUnit and Easy Mock, are introduced. JUnit is a widely used tool for partially automating the unit test process. Easy Mock allows mocking of objects that are not available while testing a unit. The technique of object mocking and its advantages are described using Easy Mock.

10.1  Introduction

Unit testing is an early phase of software testing. The goal in this phase is ...

Get Foundations of Software Testing, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.