Exercises, examples and other material relating to training module T249. This module is presented on
Private Courses and
Specially Run Courses only
Related technical and longer articles
Using 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
tcltest::test ... | 2015-03-11 |
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 |
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
[here].
Topics covered in this module
Principles.
Basic Tests.
Alternative syntax from tcltest version 2.
Specifying setups and cleanups.
Applying Constraints.
Running groups of tests.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Tcl/Tk, Expect,
Ruby,
Lua,
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses 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.