Unit Testing



Definition

Unit testing is the testing of an individual unit of software, typically by its developer or by a peer programmer.

Objectives

The typical objectives of unit testing are to:

Preconditions

Unit testing can typically begin when the following preconditions hold:

Completion Criteria

Unit testing is typically complete when the following postconditions hold:

Tasks with Techniques

Unit testing typically involves performing the following testing tasks using the following techniques:

Environments

Unit testing is typically performed on the following environments using the following tools:

Phases

Unit testing typically consists of the following tasks being performed during the following phases:

TASK \
PHASE
Business
Strategy
Business
Optimization
Initiation Construction Delivery Usage Retirement
Test Planning Not Applicable Not Applicable Optional Completed Maintained Maintained Archived
Test Reuse Not Applicable Not Applicable Started Completed Not Applicable Not Applicable Not Applicable
Test Design Not Applicable Not Applicable Started Completed Maintained Maintained Not Applicable
Test Implementation Not Applicable Not Applicable Started Completed Maintained Maintained Not Applicable
Test Execution Not Applicable Not Applicable Started Completed Regression Regression Not Applicable
Test Reporting Not Applicable Not Applicable Started Completed Regression Regression Not Applicable

Guidelines