2007-08-05 MB: TclTAP is a small test library producing output in TAP format [L1 ]. It doesn't want to be in competition with tcltest. For more information: http://kotka.de/projects/tcltap.html (Not found on 2012-06-04 by escargo)
Example test script:
package require test::tap namespace import ::test::tap::* # We want to run four tests. plan 4 ok {expr {1 == 1}} -description "1 is equal to 1" # Similar. Note: For now one must use [concat] to pass a variable or constant. is {concat 1} 1 ok {expr {0 == 1}} # But is has more diagnostics: is {concat 0} 1
This test script produces the following output:
1..4 ok 1 1 is equal to 1 ok 2 not ok 3 not ok 4 # expected: # {concat 0} # to be: # 1 # got: # 0