TIP #452: Add "stubs" Package to or Along Side of TclTest

Title:Add "stubs" Package to or Along Side of TclTest
Version:$Revision: 1.1 $
Author:Gerald Lester <Gerald dot Lester at SAP dot com>
Created:Wednesday, 10 August 2016


This TIP proposes an enhancement to the tcltest package to add support for easy creation of test stubs and test seams.


The tcltest package allows for automated testing of Tcl code. To do proper automated unit test requires that the unit under test (i.e., the method or procedure) not invoke the actual implmentation of other units, but rather should invoke stub or mock units that are under the control of the test being performed as to the results they return and any exceptions they raise.


That a package implementing the framework to easily create test stubs/mocks of Tcl commands be added to the 'tcltest package. Additionaly, to facilitate creation of automated test for legacy Tcl code, commands supporting test seam creation and specification would also be included proposed package.

Detailed description to follow.

Reference Implementation

In process of acceptance into Tcl source tree.



This document has been placed in the public domain.

The code has been approved to be placed in the public domain under a BSD license, in particular as part of the tcltest, TclLib or (if need be) a separate standalone package.

Powered by Tcl[Index] [History] [Edit] [HTML Format] [Source Format] [LaTeX Format] [Text Format] [XML Format] [*roff Format (experimental)] [RTF Format (experimental)]

TIP AutoGenerator - written by Donal K. Fellows