Exercises, examples and other material relating to training module T249. This module is presented on Private Courses
and Specially Run Courses
Related technical and longer articlesUsing Tcl to test a system with the tcltest module
|Articles and tips on this subject||updated|
|4457||Test framework for TCL - Tcltest - some examples|
Tcl ships with the tcltest test suite / harness - and standard advice for coding is to write lots of tests and check with them every time you run your code.
There's a (new) first example [here] - loading in Tcltest and defining 3 tests:
package require tcltest
Examples from our training material
|tt1.test|| Test under tcltest, version 2|
|tt2.test|| tcltest example using setup and cleanup blocks|
|tt3.test|| tcltest example that runs only if constraints are met|
|ttest|| tcltest - first steps|
|ttrun|| tcltest - an example running all the tests in a directory|
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from http://www.training-notes.co.uk
Topics covered in this module
Alternative syntax from tcltest version 2.
Specifying setups and cleanups.
Running groups of tests.
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if you live in a different
country or continent to us
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.