Tcl Coverage

61 views
Skip to first unread message

Ahmed Ossman

unread,
Oct 12, 2005, 10:14:52 AM10/12/05
to
Hi All,

Does anyone have any idea about some tools that make "tcl covergae"?
I know one that is integrated in the debugger of ActiveState developing kit
but it is GUI only.
I want a batch one .

Please help....

Regards,
Ahmed Ossman


Larry W. Virden

unread,
Oct 12, 2005, 10:50:55 AM10/12/05
to
it would be great to use something like this with the various
extensions, to see how much of the code their test suites cover. Or
for that matter, to use with tcl itself, to see how much of it is being
covered by its test suite... and where to focus attention for new test
cases.

Uwe Klein

unread,
Oct 12, 2005, 11:09:26 AM10/12/05
to
it should be possible to build something suitable with either

blt::bltdebug

The bltdebug command is a simple tracing facility for Tcl commands.
Each command line is printed before it is executed on standard error.
The output consists of the command line both before and after substitu-
tions have occurred. Level indicates at what level to stop tracing
commands. If level is 0, no tracing is performed. This is the default.
If no level argument is given, the current level is printed.

or
tclx:cmdtrace

cmdtrace level | on ?noeval? ?notruncate? ?procs? ?fileid? ?command
cmd?

Print a trace statement for all commands executed at depth of
level or below (1 is the top level). If on is specified, all
commands at any level are traced. The following options are
available:


uwe

Arjen Markus

unread,
Oct 13, 2005, 3:32:37 AM10/13/05
to
A long time ago I built a simple one: it instruments the Tcl code and
produces a file that can then be compared with the code to indicate
what code was or was not executed.

You can find it at:
ftp://ftp.procplace.com/pub/tcl/sorted/apps/Testcov/0.3/

(Note: it is not quite complete - it does not cover switch statements,
IIRC, for instance)

Regards,

Arjen

Peter Spjuth

unread,
Oct 13, 2005, 4:22:09 AM10/13/05
to
Ahmed Ossman wrote:
> Does anyone have any idea about some tools that make "tcl covergae"?

Nagelfar has some support for coverage.
http://wiki.tcl.tk/nagelfar

/Peter

Reply all
Reply to author
Forward
0 new messages