Hi.. I will be posting all the testing related stuff here. The content posted here is a collection from different websites.

Monday, October 30, 2006

What are 'Stubs' and 'Drivers' ?

Stub: A piece of code that simulates the activity of missing components.

Driver: A piece of code that passes test cases to another piece of code.

An Example: Consider an example in which we need to develop a "calculator" that converts between different units (e.g., feet to inches).

 

No comments: