Print Page | Close Window

Unit testing

Printed From: One Stop Testing
Category: Types Of Software Testing @ OneStopTesting
Forum Name: Unit Testing @ OneStopTesting
Forum Discription: Discuss All that is need to be known about Unit Software Testing and its Tools.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=236
Printed Date: 18Nov2024 at 2:48pm


Topic: Unit testing
Posted By: Rahul
Subject: Unit testing
Date Posted: 23Feb2007 at 4:21pm

In http://en.wikipedia.org/wiki/Computer_programming - computer programming , unit testing is a procedure used to validate that individual http://en.wikipedia.org/wiki/Module_%28programming%29 - modules or units of http://en.wikipedia.org/wiki/Source_code - source code are working properly.

More technically one should consider that a unit is the smallest testable part of an application. In a Procedural Design a unit may be an individual program, function, procedure, web page, menu etc. But in Object Oriented Design, the smallest unit is always a Class; which may be a base/super class, abstract class or derived/child class.

A unit test is a test for a specific unit. Ideally, each http://en.wikipedia.org/wiki/Test_case - test case is independent from the others; http://en.wikipedia.org/wiki/Mock_object - mock objects and http://en.wikipedia.org/wiki/Test_harness - test harnesses can be used to assist testing a module in isolation. Unit testing is typically done by the http://en.wikipedia.org/wiki/Software_developer - developers and not by http://en.wikipedia.org/wiki/End-user - end-users .




Print Page | Close Window